From: "Wu, Bryan" This patch fix a printing error bug when reboot kernel mounting on SPI flash. Signed-off-by: Bryan Wu Signed-off-by: Andrew Morton --- drivers/spi/spi_bfin5xx.c | 9 --------- 1 files changed, 9 deletions(-) diff -puN drivers/spi/spi_bfin5xx.c~blackfin-blackfin-on-chip-spi-controller-driver-fix-reboot-kernel-mounting-spi-flash-print-error-bug drivers/spi/spi_bfin5xx.c --- a/drivers/spi/spi_bfin5xx.c~blackfin-blackfin-on-chip-spi-controller-driver-fix-reboot-kernel-mounting-spi-flash-print-error-bug +++ a/drivers/spi/spi_bfin5xx.c @@ -1203,14 +1203,6 @@ static int bfin5xx_spi_remove(struct pla return 0; } -static void bfin5xx_spi_shutdown(struct platform_device *pdev) -{ - int status = 0; - - if ((status = bfin5xx_spi_remove(pdev)) != 0) - dev_err(&pdev->dev, "shutdown failed with %d\n", status); -} - /* PM, do nothing now */ #ifdef CONFIG_PM static int suspend_devices(struct device *dev, void *pm_message) @@ -1276,7 +1268,6 @@ static struct platform_driver driver = { }, .probe = bfin5xx_spi_probe, .remove = __devexit_p(bfin5xx_spi_remove), - .shutdown = bfin5xx_spi_shutdown, .suspend = bfin5xx_spi_suspend, .resume = bfin5xx_spi_resume, }; _