Skip to content

Commit

Permalink
spi: sh-msiof: Remove unnecessary platform_set_drvdata()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Shiyan authored and Mark Brown committed Jun 6, 2014
1 parent d746abd commit b8fa0ab
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/spi/spi-sh-msiof.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b8fa0ab

Please sign in to comment.