mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
mmc: usdhi6rol0: fix error return code in usdhi6_probe()
Fix to return a negative error code from the error handling case instead
of 0, as done elsewhere in this function.
Fixes: 75fa9ea6e3 ("mmc: add a driver for the Renesas usdhi6rol0 SD/SDIO host controller")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Zhen Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
This commit is contained in:
1 parent
3ae6137658
commit
2f9ae69e52
1 file changed
+1
@@ -1801,6 +1801,7 @@ static int usdhi6_probe(struct platform_device *pdev)
|
||||
|
||||
version = usdhi6_read(host, USDHI6_VERSION);
|
||||
if ((version & 0xfff) != 0xa0d) {
|
||||
ret = -EPERM;
|
||||
dev_err(dev, "Version not recognized %x\n", version);
|
||||
goto e_clk_off;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user