瀏覽代碼

spi: jcore: remove unnecessary platform_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Wei Yongjun 9 年之前
父節點
當前提交
f75529fd71
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/spi/spi-jcore.c

+ 0 - 1
drivers/spi/spi-jcore.c

@@ -206,7 +206,6 @@ static int jcore_spi_probe(struct platform_device *pdev)
 exit_busy:
 	err = -EBUSY;
 exit:
-	platform_set_drvdata(pdev, NULL);
 	spi_master_put(master);
 	return err;
 }