aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/tifm_7xx1.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-10-30 01:35:20 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-30 13:19:30 -0400
commit86d6275a8f1b7ba64b79a46c7616264302f44410 (patch)
treea96737bdd6be5d4b64ab90bf19e9f476f59c9b43 /drivers/misc/tifm_7xx1.c
parentd27f25c9c216dc9f9a320fe78f729aebdebcae50 (diff)
tifm: fix error return code in tifm_7xx1_probe()
Fix to return ENODEV in the pci ioremap error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/tifm_7xx1.c')
-rw-r--r--drivers/misc/tifm_7xx1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/misc/tifm_7xx1.c b/drivers/misc/tifm_7xx1.c
index ae282a100429..a606c8901e18 100644
--- a/drivers/misc/tifm_7xx1.c
+++ b/drivers/misc/tifm_7xx1.c
@@ -356,8 +356,10 @@ static int tifm_7xx1_probe(struct pci_dev *dev,
356 pci_set_drvdata(dev, fm); 356 pci_set_drvdata(dev, fm);
357 357
358 fm->addr = pci_ioremap_bar(dev, 0); 358 fm->addr = pci_ioremap_bar(dev, 0);
359 if (!fm->addr) 359 if (!fm->addr) {
360 rc = -ENODEV;
360 goto err_out_free; 361 goto err_out_free;
362 }
361 363
362 rc = request_irq(dev->irq, tifm_7xx1_isr, IRQF_SHARED, DRIVER_NAME, fm); 364 rc = request_irq(dev->irq, tifm_7xx1_isr, IRQF_SHARED, DRIVER_NAME, fm);
363 if (rc) 365 if (rc)