Skip to content

Commit

Permalink
spi: omap-100k: 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 43e48cc commit d746abd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/spi/spi-omap-100k.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,6 @@ static int omap1_spi100k_probe(struct platform_device *pdev)
master->min_speed_hz = OMAP1_SPI100K_MAX_FREQ/(1<<16);
master->max_speed_hz = OMAP1_SPI100K_MAX_FREQ;

platform_set_drvdata(pdev, master);

spi100k = spi_master_get_devdata(master);

/*
Expand Down

0 comments on commit d746abd

Please sign in to comment.