fc54923bbe3de7042a1efd4e7dc7f8f990a9790e
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-3.8 / 205-spi-ath79-add-shutdown-handler.patch
1 From dab305def68a9ea28c1c0ca2fc20bba645944914 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 33/34] spi/ath79: add shutdown handler
5
6 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
7 ---
8 drivers/spi/spi-ath79.c | 12 +++++++++++-
9 1 files changed, 11 insertions(+), 1 deletions(-)
10
11 --- a/drivers/spi/spi-ath79.c
12 +++ b/drivers/spi/spi-ath79.c
13 @@ -308,9 +308,15 @@ static int ath79_spi_remove(struct platf
14 return 0;
15 }
16
17 +static void ath79_spi_shutdown(struct platform_device *pdev)
18 +{
19 + ath79_spi_remove(pdev);
20 +}
21 +
22 static struct platform_driver ath79_spi_driver = {
23 .probe = ath79_spi_probe,
24 .remove = ath79_spi_remove,
25 + .shutdown = ath79_spi_shutdown,
26 .driver = {
27 .name = DRV_NAME,
28 .owner = THIS_MODULE,