Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7913ae7d authored by Wei Yongjun's avatar Wei Yongjun Committed by Chris Ball
Browse files

mmc: sh_mobile_sdhi: fix error return code in sh_mobile_sdhi_probe()



Fix to return a negative error code instead of 0 when we cannot get
IRQ source by platform_get_irq(), as done elsewhere in this function.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 5a0e8074
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -273,9 +273,11 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev)
		}

		/* There must be at least one IRQ source */
		if (!i)
		if (!i) {
			ret = irq;
			goto eirq;
		}
	}

	dev_info(&pdev->dev, "%s base at 0x%08lx clock rate %u MHz\n",
		 mmc_hostname(host->mmc), (unsigned long)