aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/parisc/sba_iommu.c
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@parisc-linux.org>2005-10-21 22:36:40 -0400
committerKyle McMartin <kyle@parisc-linux.org>2005-10-21 22:36:40 -0400
commit53f01bba49938f115237fe43a261c31ac13ae5c6 (patch)
treedf2a5fa9d95c7e69447ac0c89d6e149888c9bd1c /drivers/parisc/sba_iommu.c
parentbdad1f836ab1ca2b18a625222f63f630cfd14e41 (diff)
[PARISC] Convert parisc_device to use struct resource for hpa
Convert pa_dev->hpa from an unsigned long to a struct resource. Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Fix up users of ->hpa to use ->hpa.start instead. Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Diffstat (limited to 'drivers/parisc/sba_iommu.c')
-rw-r--r--drivers/parisc/sba_iommu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/parisc/sba_iommu.c b/drivers/parisc/sba_iommu.c
index a8405f05fb5f..6256ad365d0b 100644
--- a/drivers/parisc/sba_iommu.c
+++ b/drivers/parisc/sba_iommu.c
@@ -1600,7 +1600,7 @@ sba_ioc_init(struct parisc_device *sba, struct ioc *ioc, int ioc_num)
1600 1600
1601static void __iomem *ioc_remap(struct sba_device *sba_dev, int offset) 1601static void __iomem *ioc_remap(struct sba_device *sba_dev, int offset)
1602{ 1602{
1603 return ioremap(sba_dev->dev->hpa + offset, SBA_FUNC_SIZE); 1603 return ioremap(sba_dev->dev->hpa.start + offset, SBA_FUNC_SIZE);
1604} 1604}
1605 1605
1606static void sba_hw_init(struct sba_device *sba_dev) 1606static void sba_hw_init(struct sba_device *sba_dev)
@@ -1978,7 +1978,7 @@ sba_driver_callback(struct parisc_device *dev)
1978 u32 func_class; 1978 u32 func_class;
1979 int i; 1979 int i;
1980 char *version; 1980 char *version;
1981 void __iomem *sba_addr = ioremap(dev->hpa, SBA_FUNC_SIZE); 1981 void __iomem *sba_addr = ioremap(dev->hpa.start, SBA_FUNC_SIZE);
1982 1982
1983 sba_dump_ranges(sba_addr); 1983 sba_dump_ranges(sba_addr);
1984 1984
@@ -2020,7 +2020,7 @@ sba_driver_callback(struct parisc_device *dev)
2020 } 2020 }
2021 2021
2022 printk(KERN_INFO "%s found %s at 0x%lx\n", 2022 printk(KERN_INFO "%s found %s at 0x%lx\n",
2023 MODULE_NAME, version, dev->hpa); 2023 MODULE_NAME, version, dev->hpa.start);
2024 2024
2025 sba_dev = kmalloc(sizeof(struct sba_device), GFP_KERNEL); 2025 sba_dev = kmalloc(sizeof(struct sba_device), GFP_KERNEL);
2026 if (!sba_dev) { 2026 if (!sba_dev) {