1 From 1025bfbe327b3f9f7227e781c71751d5251803cb Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Wed, 11 Jan 2012 22:19:32 +0100
4 Subject: [PATCH 6/7] spi/ath79: add shutdown handler
6 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
8 drivers/spi/spi-ath79.c | 12 +++++++++++-
9 1 files changed, 11 insertions(+), 1 deletions(-)
11 --- a/drivers/spi/spi-ath79.c
12 +++ b/drivers/spi/spi-ath79.c
13 @@ -265,7 +265,7 @@ err_put_master:
17 -static __devexit int ath79_spi_remove(struct platform_device *pdev)
18 +static void __ath79_spi_remove(struct platform_device *pdev)
20 struct ath79_spi *sp = platform_get_drvdata(pdev);
22 @@ -274,13 +274,23 @@ static __devexit int ath79_spi_remove(st
24 platform_set_drvdata(pdev, NULL);
25 spi_master_put(sp->bitbang.master);
28 +static __devexit int ath79_spi_remove(struct platform_device *pdev)
30 + __ath79_spi_remove(pdev);
34 +static void ath79_spi_shutdown(struct platform_device *pdev)
36 + __ath79_spi_remove(pdev);
39 static struct platform_driver ath79_spi_driver = {
40 .probe = ath79_spi_probe,
41 .remove = __devexit_p(ath79_spi_remove),
42 + .shutdown = ath79_spi_shutdown,