Fix below compile warning: CC drivers/mmc/host/tmio_mmc.o drivers/mmc/host/tmio_mmc.c: In function 'tmio_mmc_suspend': drivers/mmc/host/tmio_mmc.c:30: warning: unused variable 'mmc' drivers/mmc/host/tmio_mmc.c: In function 'tmio_mmc_resume': drivers/mmc/host/tmio_mmc.c:45: warning: unused variable 'mmc'
Unified · Split
| @@ -27,7 +27,6 @@ · 26 unmodified lines | ||
| 27 | 27 | static int tmio_mmc_suspend(struct platform_device *dev, pm_message_t state) |
| 28 | 28 | { |
| 29 | 29 | const struct mfd_cell *cell = mfd_get_cell(dev); |
| 30 | − struct mmc_host *mmc = platform_get_drvdata(dev); | |
| 31 | 30 | int ret; |
| 32 | 31 | |
| 33 | 32 | ret = tmio_mmc_host_suspend(&dev->dev); |
| @@ -42,7 +41,6 @@ static int tmio_mmc_suspend(struct platform_device *dev, pm_message_t state) · 8 unmodified lines | ||
| 42 | 41 | static int tmio_mmc_resume(struct platform_device *dev) |
| 43 | 42 | { |
| 44 | 43 | const struct mfd_cell *cell = mfd_get_cell(dev); |
| 45 | − struct mmc_host *mmc = platform_get_drvdata(dev); | |
| 46 | 44 | int ret = 0; |
| 47 | 45 | |
| 48 | 46 | /* Tell the MFD core we are ready to be enabled */ |