|
|
@@ -429,6 +429,7 @@ static int mt7621_spi_probe(struct platform_device *pdev)
|
|
|
int status = 0;
|
|
|
struct clk *clk;
|
|
|
struct mt7621_spi_ops *ops;
|
|
|
+ int ret;
|
|
|
|
|
|
match = of_match_device(mt7621_spi_match, &pdev->dev);
|
|
|
if (!match)
|
|
|
@@ -476,7 +477,11 @@ static int mt7621_spi_probe(struct platform_device *pdev)
|
|
|
rs->pending_write = 0;
|
|
|
dev_info(&pdev->dev, "sys_freq: %u\n", rs->sys_freq);
|
|
|
|
|
|
- device_reset(&pdev->dev);
|
|
|
+ ret = device_reset(&pdev->dev);
|
|
|
+ if (ret) {
|
|
|
+ dev_err(&pdev->dev, "SPI reset failed!\n");
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
|
|
|
mt7621_spi_reset(rs, 0);
|
|
|
|