diff options
Diffstat (limited to 'drivers/block/xsysace.c')
-rw-r--r-- | drivers/block/xsysace.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/block/xsysace.c b/drivers/block/xsysace.c index 3ea172b7b7a4..3847464f5ea6 100644 --- a/drivers/block/xsysace.c +++ b/drivers/block/xsysace.c | |||
@@ -1091,7 +1091,8 @@ ace_alloc(struct device *dev, int id, unsigned long physaddr, | |||
1091 | ace->bus_width = bus_width; | 1091 | ace->bus_width = bus_width; |
1092 | 1092 | ||
1093 | /* Call the setup code */ | 1093 | /* Call the setup code */ |
1094 | if ((rc = ace_setup(ace)) != 0) | 1094 | rc = ace_setup(ace); |
1095 | if (rc) | ||
1095 | goto err_setup; | 1096 | goto err_setup; |
1096 | 1097 | ||
1097 | dev_set_drvdata(dev, ace); | 1098 | dev_set_drvdata(dev, ace); |
@@ -1253,11 +1254,13 @@ static int __init ace_init(void) | |||
1253 | goto err_blk; | 1254 | goto err_blk; |
1254 | } | 1255 | } |
1255 | 1256 | ||
1256 | if ((rc = ace_of_register()) != 0) | 1257 | rc = ace_of_register(); |
1258 | if (rc) | ||
1257 | goto err_of; | 1259 | goto err_of; |
1258 | 1260 | ||
1259 | pr_debug("xsysace: registering platform binding\n"); | 1261 | pr_debug("xsysace: registering platform binding\n"); |
1260 | if ((rc = platform_driver_register(&ace_platform_driver)) != 0) | 1262 | rc = platform_driver_register(&ace_platform_driver); |
1263 | if (rc) | ||
1261 | goto err_plat; | 1264 | goto err_plat; |
1262 | 1265 | ||
1263 | pr_info("Xilinx SystemACE device driver, major=%i\n", ace_major); | 1266 | pr_info("Xilinx SystemACE device driver, major=%i\n", ace_major); |