aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pmac.c')
-rw-r--r--drivers/ide/pmac.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/ide/pmac.c b/drivers/ide/pmac.c
index e944c7f705f7..bf83d7bb6bc6 100644
--- a/drivers/ide/pmac.c
+++ b/drivers/ide/pmac.c
@@ -1025,8 +1025,7 @@ static const struct ide_port_info pmac_port_info = {
1025 * Setup, register & probe an IDE channel driven by this driver, this is 1025 * Setup, register & probe an IDE channel driven by this driver, this is
1026 * called by one of the 2 probe functions (macio or PCI). 1026 * called by one of the 2 probe functions (macio or PCI).
1027 */ 1027 */
1028static int __devinit pmac_ide_setup_device(pmac_ide_hwif_t *pmif, 1028static int pmac_ide_setup_device(pmac_ide_hwif_t *pmif, struct ide_hw *hw)
1029 struct ide_hw *hw)
1030{ 1029{
1031 struct device_node *np = pmif->node; 1030 struct device_node *np = pmif->node;
1032 const int *bidp; 1031 const int *bidp;
@@ -1126,7 +1125,7 @@ static int __devinit pmac_ide_setup_device(pmac_ide_hwif_t *pmif,
1126 return rc; 1125 return rc;
1127} 1126}
1128 1127
1129static void __devinit pmac_ide_init_ports(struct ide_hw *hw, unsigned long base) 1128static void pmac_ide_init_ports(struct ide_hw *hw, unsigned long base)
1130{ 1129{
1131 int i; 1130 int i;
1132 1131
@@ -1139,8 +1138,8 @@ static void __devinit pmac_ide_init_ports(struct ide_hw *hw, unsigned long base)
1139/* 1138/*
1140 * Attach to a macio probed interface 1139 * Attach to a macio probed interface
1141 */ 1140 */
1142static int __devinit 1141static int pmac_ide_macio_attach(struct macio_dev *mdev,
1143pmac_ide_macio_attach(struct macio_dev *mdev, const struct of_device_id *match) 1142 const struct of_device_id *match)
1144{ 1143{
1145 void __iomem *base; 1144 void __iomem *base;
1146 unsigned long regbase; 1145 unsigned long regbase;
@@ -1262,8 +1261,8 @@ pmac_ide_macio_resume(struct macio_dev *mdev)
1262/* 1261/*
1263 * Attach to a PCI probed interface 1262 * Attach to a PCI probed interface
1264 */ 1263 */
1265static int __devinit 1264static int pmac_ide_pci_attach(struct pci_dev *pdev,
1266pmac_ide_pci_attach(struct pci_dev *pdev, const struct pci_device_id *id) 1265 const struct pci_device_id *id)
1267{ 1266{
1268 struct device_node *np; 1267 struct device_node *np;
1269 pmac_ide_hwif_t *pmif; 1268 pmac_ide_hwif_t *pmif;
@@ -1692,8 +1691,7 @@ static const struct ide_dma_ops pmac_dma_ops = {
1692 * Allocate the data structures needed for using DMA with an interface 1691 * Allocate the data structures needed for using DMA with an interface
1693 * and fill the proper list of functions pointers 1692 * and fill the proper list of functions pointers
1694 */ 1693 */
1695static int __devinit pmac_ide_init_dma(ide_hwif_t *hwif, 1694static int pmac_ide_init_dma(ide_hwif_t *hwif, const struct ide_port_info *d)
1696 const struct ide_port_info *d)
1697{ 1695{
1698 pmac_ide_hwif_t *pmif = 1696 pmac_ide_hwif_t *pmif =
1699 (pmac_ide_hwif_t *)dev_get_drvdata(hwif->gendev.parent); 1697 (pmac_ide_hwif_t *)dev_get_drvdata(hwif->gendev.parent);