aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_macio.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-26 00:25:02 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-26 00:25:02 -0500
commit8f5f90a872c38b4e78f3cc95e8a25434b98e4db2 (patch)
tree36c50b0c97286ab89c85016f7ab281f8e843c05c /drivers/ata/pata_macio.c
parentc0cd2da16b431a2007ea83865f3dd1530c1643a5 (diff)
parent949db153b6466c6f7cad5a427ecea94985927311 (diff)
Merge 3.8-rc5 into staging-next
This resolves a merge issue with a iio driver, and the zram code. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ata/pata_macio.c')
-rw-r--r--drivers/ata/pata_macio.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/drivers/ata/pata_macio.c b/drivers/ata/pata_macio.c
index b057e3fa44bc..e5725edcf515 100644
--- a/drivers/ata/pata_macio.c
+++ b/drivers/ata/pata_macio.c
@@ -935,7 +935,7 @@ static struct ata_port_operations pata_macio_ops = {
935 .sff_irq_clear = pata_macio_irq_clear, 935 .sff_irq_clear = pata_macio_irq_clear,
936}; 936};
937 937
938static void __devinit pata_macio_invariants(struct pata_macio_priv *priv) 938static void pata_macio_invariants(struct pata_macio_priv *priv)
939{ 939{
940 const int *bidp; 940 const int *bidp;
941 941
@@ -976,9 +976,8 @@ static void __devinit pata_macio_invariants(struct pata_macio_priv *priv)
976 priv->aapl_bus_id = 1; 976 priv->aapl_bus_id = 1;
977} 977}
978 978
979static void __devinit pata_macio_setup_ios(struct ata_ioports *ioaddr, 979static void pata_macio_setup_ios(struct ata_ioports *ioaddr,
980 void __iomem * base, 980 void __iomem * base, void __iomem * dma)
981 void __iomem * dma)
982{ 981{
983 /* cmd_addr is the base of regs for that port */ 982 /* cmd_addr is the base of regs for that port */
984 ioaddr->cmd_addr = base; 983 ioaddr->cmd_addr = base;
@@ -999,8 +998,8 @@ static void __devinit pata_macio_setup_ios(struct ata_ioports *ioaddr,
999 ioaddr->bmdma_addr = dma; 998 ioaddr->bmdma_addr = dma;
1000} 999}
1001 1000
1002static void __devinit pmac_macio_calc_timing_masks(struct pata_macio_priv *priv, 1001static void pmac_macio_calc_timing_masks(struct pata_macio_priv *priv,
1003 struct ata_port_info *pinfo) 1002 struct ata_port_info *pinfo)
1004{ 1003{
1005 int i = 0; 1004 int i = 0;
1006 1005
@@ -1027,11 +1026,11 @@ static void __devinit pmac_macio_calc_timing_masks(struct pata_macio_priv *priv,
1027 pinfo->pio_mask, pinfo->mwdma_mask, pinfo->udma_mask); 1026 pinfo->pio_mask, pinfo->mwdma_mask, pinfo->udma_mask);
1028} 1027}
1029 1028
1030static int __devinit pata_macio_common_init(struct pata_macio_priv *priv, 1029static int pata_macio_common_init(struct pata_macio_priv *priv,
1031 resource_size_t tfregs, 1030 resource_size_t tfregs,
1032 resource_size_t dmaregs, 1031 resource_size_t dmaregs,
1033 resource_size_t fcregs, 1032 resource_size_t fcregs,
1034 unsigned long irq) 1033 unsigned long irq)
1035{ 1034{
1036 struct ata_port_info pinfo; 1035 struct ata_port_info pinfo;
1037 const struct ata_port_info *ppi[] = { &pinfo, NULL }; 1036 const struct ata_port_info *ppi[] = { &pinfo, NULL };
@@ -1113,8 +1112,8 @@ static int __devinit pata_macio_common_init(struct pata_macio_priv *priv,
1113 &pata_macio_sht); 1112 &pata_macio_sht);
1114} 1113}
1115 1114
1116static int __devinit pata_macio_attach(struct macio_dev *mdev, 1115static int pata_macio_attach(struct macio_dev *mdev,
1117 const struct of_device_id *match) 1116 const struct of_device_id *match)
1118{ 1117{
1119 struct pata_macio_priv *priv; 1118 struct pata_macio_priv *priv;
1120 resource_size_t tfregs, dmaregs = 0; 1119 resource_size_t tfregs, dmaregs = 0;
@@ -1190,7 +1189,7 @@ static int __devinit pata_macio_attach(struct macio_dev *mdev,
1190 return rc; 1189 return rc;
1191} 1190}
1192 1191
1193static int __devexit pata_macio_detach(struct macio_dev *mdev) 1192static int pata_macio_detach(struct macio_dev *mdev)
1194{ 1193{
1195 struct ata_host *host = macio_get_drvdata(mdev); 1194 struct ata_host *host = macio_get_drvdata(mdev);
1196 struct pata_macio_priv *priv = host->private_data; 1195 struct pata_macio_priv *priv = host->private_data;
@@ -1257,8 +1256,8 @@ static void pata_macio_mb_event(struct macio_dev* mdev, int mb_state)
1257#endif /* CONFIG_PMAC_MEDIABAY */ 1256#endif /* CONFIG_PMAC_MEDIABAY */
1258 1257
1259 1258
1260static int __devinit pata_macio_pci_attach(struct pci_dev *pdev, 1259static int pata_macio_pci_attach(struct pci_dev *pdev,
1261 const struct pci_device_id *id) 1260 const struct pci_device_id *id)
1262{ 1261{
1263 struct pata_macio_priv *priv; 1262 struct pata_macio_priv *priv;
1264 struct device_node *np; 1263 struct device_node *np;
@@ -1310,7 +1309,7 @@ static int __devinit pata_macio_pci_attach(struct pci_dev *pdev,
1310 return 0; 1309 return 0;
1311} 1310}
1312 1311
1313static void __devexit pata_macio_pci_detach(struct pci_dev *pdev) 1312static void pata_macio_pci_detach(struct pci_dev *pdev)
1314{ 1313{
1315 struct ata_host *host = dev_get_drvdata(&pdev->dev); 1314 struct ata_host *host = dev_get_drvdata(&pdev->dev);
1316 1315