summaryrefslogtreecommitdiffstats
path: root/drivers/parisc/ccio-dma.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-03-03 19:20:06 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2017-03-03 19:20:06 -0500
commitf47e2db43d6865358f35a7e2c7aa035321a6537a (patch)
tree8ded6635ba91d5b6f23b700e504d69faa226f520 /drivers/parisc/ccio-dma.c
parent606ed721afdbba2f560db87f33cbdb72463a5d7b (diff)
parentef470a60e10eb12635d7b84c9502cea3028d44e8 (diff)
Merge branch 'parisc-4.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc fixes and cleanups from Helge Deller: "Nothing really important in this patchset: fix resource leaks in error paths, coding style cleanups and code removal" * 'parisc-4.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: Remove flush_user_dcache_range and flush_user_icache_range parisc: fix a printk parisc: ccio-dma: Handle return NULL error from ioremap_nocache parisc: Define access_ok() as macro parisc: eisa: Fix resource leaks in error paths parisc: eisa: Remove coding style errors
Diffstat (limited to 'drivers/parisc/ccio-dma.c')
-rw-r--r--drivers/parisc/ccio-dma.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/parisc/ccio-dma.c b/drivers/parisc/ccio-dma.c
index aeb073b5fe16..e32ca2ef9e54 100644
--- a/drivers/parisc/ccio-dma.c
+++ b/drivers/parisc/ccio-dma.c
@@ -1539,7 +1539,7 @@ static int __init ccio_probe(struct parisc_device *dev)
1539 ioc = kzalloc(sizeof(struct ioc), GFP_KERNEL); 1539 ioc = kzalloc(sizeof(struct ioc), GFP_KERNEL);
1540 if (ioc == NULL) { 1540 if (ioc == NULL) {
1541 printk(KERN_ERR MODULE_NAME ": memory allocation failure\n"); 1541 printk(KERN_ERR MODULE_NAME ": memory allocation failure\n");
1542 return 1; 1542 return -ENOMEM;
1543 } 1543 }
1544 1544
1545 ioc->name = dev->id.hversion == U2_IOA_RUNWAY ? "U2" : "UTurn"; 1545 ioc->name = dev->id.hversion == U2_IOA_RUNWAY ? "U2" : "UTurn";
@@ -1554,6 +1554,10 @@ static int __init ccio_probe(struct parisc_device *dev)
1554 1554
1555 ioc->hw_path = dev->hw_path; 1555 ioc->hw_path = dev->hw_path;
1556 ioc->ioc_regs = ioremap_nocache(dev->hpa.start, 4096); 1556 ioc->ioc_regs = ioremap_nocache(dev->hpa.start, 4096);
1557 if (!ioc->ioc_regs) {
1558 kfree(ioc);
1559 return -ENOMEM;
1560 }
1557 ccio_ioc_init(ioc); 1561 ccio_ioc_init(ioc);
1558 ccio_init_resources(ioc); 1562 ccio_init_resources(ioc);
1559 hppa_dma_ops = &ccio_ops; 1563 hppa_dma_ops = &ccio_ops;