Skip to content

Commit

Permalink
ARM: imx/mach-apf9328: Simplify UART0 registration
Browse files Browse the repository at this point in the history
As no flag is passed into UART0 platform data, pass NULL argument
when registering UART0.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Fabio Estevam authored and Sascha Hauer committed Jul 7, 2011
1 parent 7cf7381 commit 07d1483
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions arch/arm/mach-imx/mach-apf9328.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ static struct platform_device dm9000x_device = {
}
};

/* --- SERIAL RESSOURCE --- */
static const struct imxuart_platform_data uart0_pdata __initconst = {
.flags = 0,
};

static const struct imxuart_platform_data uart1_pdata __initconst = {
.flags = IMXUART_HAVE_RTSCTS,
};
Expand All @@ -119,7 +114,7 @@ static void __init apf9328_init(void)
ARRAY_SIZE(apf9328_pins),
"APF9328");

imx1_add_imx_uart0(&uart0_pdata);
imx1_add_imx_uart0(NULL);
imx1_add_imx_uart1(&uart1_pdata);

platform_add_devices(devices, ARRAY_SIZE(devices));
Expand Down

0 comments on commit 07d1483

Please sign in to comment.