Patchwork ARM: imx/mx21ads: remove unneeded cast

login
register
mail settings
Submitter Uwe Kleine-König
Date March 29, 2012, 7:58 p.m.
Message ID <1333051138-27360-1-git-send-email-u.kleine-koenig@pengutronix.de>
Download mbox | patch
Permalink /patch/149467/
State New
Headers show

Comments

Uwe Kleine-König - March 29, 2012, 7:58 p.m.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 arch/arm/mach-imx/mach-mx21ads.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
Sascha Hauer - April 2, 2012, 9:06 a.m.
On Thu, Mar 29, 2012 at 09:58:58PM +0200, Uwe Kleine-König wrote:
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  arch/arm/mach-imx/mach-mx21ads.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-imx/mach-mx21ads.c b/arch/arm/mach-imx/mach-mx21ads.c
> index e432d4a..d14bbe9 100644
> --- a/arch/arm/mach-imx/mach-mx21ads.c
> +++ b/arch/arm/mach-imx/mach-mx21ads.c
> @@ -304,8 +304,7 @@ static void __init mx21ads_board_init(void)
>  	imx21_add_mxc_nand(&mx21ads_nand_board_info);
>  
>  	platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices));
> -	platform_device_register_full(
> -			(struct platform_device_info *)&mx21ads_cs8900_devinfo);
> +	platform_device_register_full(&mx21ads_cs8900_devinfo);

Applied, thanks

Sascha

>  }
>  
>  static void __init mx21ads_timer_init(void)
> -- 
> 1.7.9.1
> 
>

Patch

diff --git a/arch/arm/mach-imx/mach-mx21ads.c b/arch/arm/mach-imx/mach-mx21ads.c
index e432d4a..d14bbe9 100644
--- a/arch/arm/mach-imx/mach-mx21ads.c
+++ b/arch/arm/mach-imx/mach-mx21ads.c
@@ -304,8 +304,7 @@  static void __init mx21ads_board_init(void)
 	imx21_add_mxc_nand(&mx21ads_nand_board_info);
 
 	platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices));
-	platform_device_register_full(
-			(struct platform_device_info *)&mx21ads_cs8900_devinfo);
+	platform_device_register_full(&mx21ads_cs8900_devinfo);
 }
 
 static void __init mx21ads_timer_init(void)