diff options
Diffstat (limited to 'drivers/parisc')
-rw-r--r-- | drivers/parisc/ccio-dma.c | 14 | ||||
-rw-r--r-- | drivers/parisc/sba_iommu.c | 14 |
2 files changed, 10 insertions, 18 deletions
diff --git a/drivers/parisc/ccio-dma.c b/drivers/parisc/ccio-dma.c index 62db3c3fe4dc..07d2a8d4498f 100644 --- a/drivers/parisc/ccio-dma.c +++ b/drivers/parisc/ccio-dma.c | |||
@@ -1551,8 +1551,7 @@ static int __init ccio_probe(struct parisc_device *dev) | |||
1551 | { | 1551 | { |
1552 | int i; | 1552 | int i; |
1553 | struct ioc *ioc, **ioc_p = &ioc_list; | 1553 | struct ioc *ioc, **ioc_p = &ioc_list; |
1554 | struct proc_dir_entry *info_entry, *bitmap_entry; | 1554 | |
1555 | |||
1556 | ioc = kzalloc(sizeof(struct ioc), GFP_KERNEL); | 1555 | ioc = kzalloc(sizeof(struct ioc), GFP_KERNEL); |
1557 | if (ioc == NULL) { | 1556 | if (ioc == NULL) { |
1558 | printk(KERN_ERR MODULE_NAME ": memory allocation failure\n"); | 1557 | printk(KERN_ERR MODULE_NAME ": memory allocation failure\n"); |
@@ -1580,13 +1579,10 @@ static int __init ccio_probe(struct parisc_device *dev) | |||
1580 | HBA_DATA(dev->dev.platform_data)->iommu = ioc; | 1579 | HBA_DATA(dev->dev.platform_data)->iommu = ioc; |
1581 | 1580 | ||
1582 | if (ioc_count == 0) { | 1581 | if (ioc_count == 0) { |
1583 | info_entry = create_proc_entry(MODULE_NAME, 0, proc_runway_root); | 1582 | proc_create(MODULE_NAME, 0, proc_runway_root, |
1584 | if (info_entry) | 1583 | &ccio_proc_info_fops); |
1585 | info_entry->proc_fops = &ccio_proc_info_fops; | 1584 | proc_create(MODULE_NAME"-bitmap", 0, proc_runway_root, |
1586 | 1585 | &ccio_proc_bitmap_fops); | |
1587 | bitmap_entry = create_proc_entry(MODULE_NAME"-bitmap", 0, proc_runway_root); | ||
1588 | if (bitmap_entry) | ||
1589 | bitmap_entry->proc_fops = &ccio_proc_bitmap_fops; | ||
1590 | } | 1586 | } |
1591 | 1587 | ||
1592 | ioc_count++; | 1588 | ioc_count++; |
diff --git a/drivers/parisc/sba_iommu.c b/drivers/parisc/sba_iommu.c index 8c4d2c13d5f2..afc849bd3f58 100644 --- a/drivers/parisc/sba_iommu.c +++ b/drivers/parisc/sba_iommu.c | |||
@@ -1895,7 +1895,9 @@ sba_driver_callback(struct parisc_device *dev) | |||
1895 | int i; | 1895 | int i; |
1896 | char *version; | 1896 | char *version; |
1897 | void __iomem *sba_addr = ioremap_nocache(dev->hpa.start, SBA_FUNC_SIZE); | 1897 | void __iomem *sba_addr = ioremap_nocache(dev->hpa.start, SBA_FUNC_SIZE); |
1898 | struct proc_dir_entry *info_entry, *bitmap_entry, *root; | 1898 | #ifdef CONFIG_PROC_FS |
1899 | struct proc_dir_entry *root; | ||
1900 | #endif | ||
1899 | 1901 | ||
1900 | sba_dump_ranges(sba_addr); | 1902 | sba_dump_ranges(sba_addr); |
1901 | 1903 | ||
@@ -1973,14 +1975,8 @@ sba_driver_callback(struct parisc_device *dev) | |||
1973 | break; | 1975 | break; |
1974 | } | 1976 | } |
1975 | 1977 | ||
1976 | info_entry = create_proc_entry("sba_iommu", 0, root); | 1978 | proc_create("sba_iommu", 0, root, &sba_proc_fops); |
1977 | bitmap_entry = create_proc_entry("sba_iommu-bitmap", 0, root); | 1979 | proc_create("sba_iommu-bitmap", 0, root, &sba_proc_bitmap_fops); |
1978 | |||
1979 | if (info_entry) | ||
1980 | info_entry->proc_fops = &sba_proc_fops; | ||
1981 | |||
1982 | if (bitmap_entry) | ||
1983 | bitmap_entry->proc_fops = &sba_proc_bitmap_fops; | ||
1984 | #endif | 1980 | #endif |
1985 | 1981 | ||
1986 | parisc_vmerge_boundary = IOVP_SIZE; | 1982 | parisc_vmerge_boundary = IOVP_SIZE; |