summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/modem/shrm/modem_shrm_driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/modem/shrm/modem_shrm_driver.c b/drivers/modem/shrm/modem_shrm_driver.c
index 5e986ab9a2c..f46b86bd22e 100644
--- a/drivers/modem/shrm/modem_shrm_driver.c
+++ b/drivers/modem/shrm/modem_shrm_driver.c
@@ -334,7 +334,8 @@ static int shrm_probe(struct platform_device *pdev)
shrm->modem = modem_get(shrm->dev, "u8500-shrm-modem");
if (shrm->modem == NULL) {
dev_err(shrm->dev, " Could not retrieve the modem.\n");
- return -ENODEV;
+ err = -ENODEV;
+ goto rollback_intr;
}
/* initialise the SHM */