imx: exit functions can/should be void
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Mon, 30 Mar 2009 13:35:39 +0000 (14:35 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 7 May 2009 14:15:58 +0000 (16:15 +0200)
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx2/mx27ads.c
arch/arm/mach-mx2/pcm038.c
arch/arm/mach-mx2/pcm970-baseboard.c
arch/arm/plat-mxc/include/mach/imx-uart.h
arch/arm/plat-mxc/include/mach/imxfb.h
arch/arm/plat-mxc/include/mach/usb.h

index f4ad932ba24fd82d7340177fa3ab914aa8db03e4..ab389c22f4dd5c15d58d153d1291c09d90e3729a 100644 (file)
@@ -71,11 +71,10 @@ static int uart_mxc_port0_init(struct platform_device *pdev)
                        ARRAY_SIZE(mxc_uart0_pins), "UART0");
 }
 
-static int uart_mxc_port0_exit(struct platform_device *pdev)
+static void uart_mxc_port0_exit(struct platform_device *pdev)
 {
        mxc_gpio_release_multiple_pins(mxc_uart0_pins,
                        ARRAY_SIZE(mxc_uart0_pins));
-       return 0;
 }
 
 static int mxc_uart1_pins[] = {
@@ -91,11 +90,10 @@ static int uart_mxc_port1_init(struct platform_device *pdev)
                        ARRAY_SIZE(mxc_uart1_pins), "UART1");
 }
 
-static int uart_mxc_port1_exit(struct platform_device *pdev)
+static void uart_mxc_port1_exit(struct platform_device *pdev)
 {
        mxc_gpio_release_multiple_pins(mxc_uart1_pins,
                        ARRAY_SIZE(mxc_uart1_pins));
-       return 0;
 }
 
 static int mxc_uart2_pins[] = {
@@ -111,11 +109,10 @@ static int uart_mxc_port2_init(struct platform_device *pdev)
                        ARRAY_SIZE(mxc_uart2_pins), "UART2");
 }
 
-static int uart_mxc_port2_exit(struct platform_device *pdev)
+static void uart_mxc_port2_exit(struct platform_device *pdev)
 {
        mxc_gpio_release_multiple_pins(mxc_uart2_pins,
                        ARRAY_SIZE(mxc_uart2_pins));
-       return 0;
 }
 
 static int mxc_uart3_pins[] = {
@@ -131,11 +128,10 @@ static int uart_mxc_port3_init(struct platform_device *pdev)
                        ARRAY_SIZE(mxc_uart3_pins), "UART3");
 }
 
-static int uart_mxc_port3_exit(struct platform_device *pdev)
+static void uart_mxc_port3_exit(struct platform_device *pdev)
 {
        mxc_gpio_release_multiple_pins(mxc_uart3_pins,
                        ARRAY_SIZE(mxc_uart3_pins));
-       return 0;
 }
 
 static int mxc_uart4_pins[] = {
@@ -151,11 +147,10 @@ static int uart_mxc_port4_init(struct platform_device *pdev)
                        ARRAY_SIZE(mxc_uart4_pins), "UART4");
 }
 
-static int uart_mxc_port4_exit(struct platform_device *pdev)
+static void uart_mxc_port4_exit(struct platform_device *pdev)
 {
        mxc_gpio_release_multiple_pins(mxc_uart4_pins,
                        ARRAY_SIZE(mxc_uart4_pins));
-       return 0;
 }
 
 static int mxc_uart5_pins[] = {
@@ -171,11 +166,10 @@ static int uart_mxc_port5_init(struct platform_device *pdev)
                        ARRAY_SIZE(mxc_uart5_pins), "UART5");
 }
 
-static int uart_mxc_port5_exit(struct platform_device *pdev)
+static void uart_mxc_port5_exit(struct platform_device *pdev)
 {
        mxc_gpio_release_multiple_pins(mxc_uart5_pins,
                        ARRAY_SIZE(mxc_uart5_pins));
-       return 0;
 }
 
 static struct platform_device *platform_devices[] __initdata = {
index 732937ca2c9f01e5e494f7b158616cd880d6d284..7f3a62e2cfccee3a26a6b3f7568015f3b5aec73e 100644 (file)
@@ -101,11 +101,10 @@ static int uart_mxc_port0_init(struct platform_device *pdev)
                        ARRAY_SIZE(mxc_uart0_pins), "UART0");
 }
 
-static int uart_mxc_port0_exit(struct platform_device *pdev)
+static void uart_mxc_port0_exit(struct platform_device *pdev)
 {
        mxc_gpio_release_multiple_pins(mxc_uart0_pins,
                        ARRAY_SIZE(mxc_uart0_pins));
-       return 0;
 }
 
 static int mxc_uart1_pins[] = {
@@ -121,11 +120,10 @@ static int uart_mxc_port1_init(struct platform_device *pdev)
                        ARRAY_SIZE(mxc_uart1_pins), "UART1");
 }
 
-static int uart_mxc_port1_exit(struct platform_device *pdev)
+static void uart_mxc_port1_exit(struct platform_device *pdev)
 {
        mxc_gpio_release_multiple_pins(mxc_uart1_pins,
                        ARRAY_SIZE(mxc_uart1_pins));
-       return 0;
 }
 
 static int mxc_uart2_pins[] = { PE8_PF_UART3_TXD,
@@ -139,11 +137,10 @@ static int uart_mxc_port2_init(struct platform_device *pdev)
                        ARRAY_SIZE(mxc_uart2_pins), "UART2");
 }
 
-static int uart_mxc_port2_exit(struct platform_device *pdev)
+static void uart_mxc_port2_exit(struct platform_device *pdev)
 {
        mxc_gpio_release_multiple_pins(mxc_uart2_pins,
                        ARRAY_SIZE(mxc_uart2_pins));
-       return 0;
 }
 
 static struct imxuart_platform_data uart_pdata[] = {
index bf4e520bc1bc604e424fa549ffe6f70eb1ab825e..16f33443efc1249bf1040885c9a0bd2b3c0d47c7 100644 (file)
@@ -105,11 +105,9 @@ static int pcm038_fb_init(struct platform_device *pdev)
                        ARRAY_SIZE(mxc_fb_pins), "FB");
 }
 
-static int pcm038_fb_exit(struct platform_device *pdev)
+static void pcm038_fb_exit(struct platform_device *pdev)
 {
        mxc_gpio_release_multiple_pins(mxc_fb_pins, ARRAY_SIZE(mxc_fb_pins));
-
-       return 0;
 }
 
 /*
index 599217b2e13f94cea800c55653e6497c9d2ff3ad..90af4d9bc19e9b79ec8e19b362cf7b525676313c 100644 (file)
@@ -23,7 +23,7 @@
 
 struct imxuart_platform_data {
        int (*init)(struct platform_device *pdev);
-       int (*exit)(struct platform_device *pdev);
+       void (*exit)(struct platform_device *pdev);
        unsigned int flags;
 };
 
index 762a7b0430e2786c6e77582f43afd68c0dbdbb88..9f0101157ec1093068140f68c2624cf04a452315 100644 (file)
@@ -76,8 +76,8 @@ struct imx_fb_platform_data {
        u_char * fixed_screen_cpu;
        dma_addr_t fixed_screen_dma;
 
-       int (*init)(struct platform_device*);
-       int (*exit)(struct platform_device*);
+       int (*init)(struct platform_device *);
+       void (*exit)(struct platform_device *);
 
        void (*lcd_power)(int);
        void (*backlight_power)(int);
index 2dacb3086f1c06ae9b0bc48b74692effe0a6cf44..be273371f34ac82d8b919a305864cfe50e13da36 100644 (file)
@@ -17,7 +17,7 @@
 
 struct imxusb_platform_data {
        int (*init)(struct device *);
-       int (*exit)(struct device *);
+       void (*exit)(struct device *);
 };
 
 #endif /* __ASM_ARCH_MXC_USB */