Commit 8d2d00dd authored by Alexander Beregalov's avatar Alexander Beregalov Committed by Kyle McMartin

parisc: ccio-dma: fix build failure without procfs

Fix this build error when CONFIG_PROC_FS is not set:
drivers/parisc/ccio-dma.c:1574: error: 'ccio_proc_info_fops' undeclared
Signed-off-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: default avatarKyle McMartin <kyle@mcmartin.ca>
parent 17085a93
...@@ -1134,7 +1134,7 @@ static const struct file_operations ccio_proc_bitmap_fops = { ...@@ -1134,7 +1134,7 @@ static const struct file_operations ccio_proc_bitmap_fops = {
.llseek = seq_lseek, .llseek = seq_lseek,
.release = single_release, .release = single_release,
}; };
#endif #endif /* CONFIG_PROC_FS */
/** /**
* ccio_find_ioc - Find the ioc in the ioc_list * ccio_find_ioc - Find the ioc in the ioc_list
...@@ -1569,13 +1569,14 @@ static int __init ccio_probe(struct parisc_device *dev) ...@@ -1569,13 +1569,14 @@ static int __init ccio_probe(struct parisc_device *dev)
BUG_ON(dev->dev.platform_data == NULL); BUG_ON(dev->dev.platform_data == NULL);
HBA_DATA(dev->dev.platform_data)->iommu = ioc; HBA_DATA(dev->dev.platform_data)->iommu = ioc;
#ifdef CONFIG_PROC_FS
if (ioc_count == 0) { if (ioc_count == 0) {
proc_create(MODULE_NAME, 0, proc_runway_root, proc_create(MODULE_NAME, 0, proc_runway_root,
&ccio_proc_info_fops); &ccio_proc_info_fops);
proc_create(MODULE_NAME"-bitmap", 0, proc_runway_root, proc_create(MODULE_NAME"-bitmap", 0, proc_runway_root,
&ccio_proc_bitmap_fops); &ccio_proc_bitmap_fops);
} }
#endif
ioc_count++; ioc_count++;
parisc_has_iommu(); parisc_has_iommu();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment