CID: 197154
After clk_set_rate we need to check the return value is fine.
Change-Id: I66526a3d180626e9c8bedb7094f325e0044e5975
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
struct s3c64xx_spi_info *sci = sdd->cntrlr_info;
void __iomem *regs = sdd->regs;
u32 val;
+ int ret;
/* Disable Clock */
if (!sdd->port_conf->clk_from_cmu) {
if (sdd->port_conf->clk_from_cmu) {
/* There is a quarter-multiplier before the SPI */
- clk_set_rate(sdd->src_clk, sdd->cur_speed * 4);
+ ret = clk_set_rate(sdd->src_clk, sdd->cur_speed * 4);
+ if (ret < 0)
+ dev_err(&sdd->pdev->dev, "SPI clk set failed\n");
+
} else {
/* Configure Clock */
val = readl(regs + S3C64XX_SPI_CLK_CFG);