File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,6 @@ static void mbox_cdev_driver_remove(struct platform_device *pdev)
211211 struct mbox_cdev_ddata * mbxdev = platform_get_drvdata (pdev );
212212
213213 mbox_free_channel (mbxdev -> mb .chan );
214- iounmap (mbxdev -> resm );
215214 cdev_del (& mbxdev -> cdev );
216215}
217216
@@ -234,7 +233,7 @@ static int mbox_cdev_driver_probe(struct platform_device *pdev)
234233 /* Initialize mailbox client */
235234 ret = mbox_cdev_request_mbox (dev , mbxdev );
236235 if (ret )
237- goto unmap ;
236+ return ret ;
238237
239238 ret = mbxdev_char_device_add (pdev , mbxdev );
240239 if (ret )
@@ -246,8 +245,6 @@ static int mbox_cdev_driver_probe(struct platform_device *pdev)
246245
247246free_mbx :
248247 mbox_free_channel (mbxdev -> mb .chan );
249- unmap :
250- iounmap (mbxdev -> resm );
251248
252249 return ret ;
253250}
You can’t perform that action at this time.
0 commit comments