From: Bartlomiej Zolnierkiewicz Date: Fri, 25 Jan 2008 21:17:07 +0000 (+0100) Subject: ide-pmac: fix pmac_ide_init_hwif_ports() X-Git-Tag: v2.6.25-rc1~1236^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d26805fd025abe1ab8785b23a7942cfb6ceffd75;p=pandora-kernel.git ide-pmac: fix pmac_ide_init_hwif_ports() * pmac_ide_init_hwif_ports() can be called by ide_init_hwif_ports() (through ppc_ide_md.ide_init_hwif hook) for non IDE PMAC interfaces. If this is the case the hw->io_ports[] should be already setup by ide_init_hwif_ports()->ide_std_init_ports() so remove redundant code from pmac_ide_init_hwif_ports(). As side-effect this change fixes ctl_addr == 0 special handling in ide_init_hwif_ports(). * Fix misleading comment while at it. Cc: Benjamin Herrenschmidt Cc: Alan Cox Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed