mirror of https://gitee.com/openkylin/linux.git
spi: sh-msiof: Remove unnecessary platform_set_drvdata()
Drop call to platform_set_drvdata() as driver data is not used anywhere in the driver. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
d746abd496
commit
b8fa0abd47
|
@ -680,8 +680,6 @@ static int sh_msiof_spi_probe(struct platform_device *pdev)
|
|||
|
||||
p = spi_master_get_devdata(master);
|
||||
|
||||
platform_set_drvdata(pdev, p);
|
||||
|
||||
of_id = of_match_device(sh_msiof_match, &pdev->dev);
|
||||
if (of_id) {
|
||||
p->chipdata = of_id->data;
|
||||
|
|
Loading…
Reference in New Issue