* [RFC PATCH 3/3] imx-uart: remove unused init()/exit() from platform_data
@ 2009-02-24 15:57 Paulius Zaleckas
0 siblings, 0 replies; only message in thread
From: Paulius Zaleckas @ 2009-02-24 15:57 UTC (permalink / raw)
To: greg; +Cc: s.hauer, linux-arm-kernel, linux-kernel
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
---
arch/arm/mach-imx/include/mach/imx-uart.h | 2 --
arch/arm/plat-mxc/include/mach/imx-uart.h | 2 --
drivers/serial/imx.c | 12 ------------
3 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/arch/arm/mach-imx/include/mach/imx-uart.h b/arch/arm/mach-imx/include/mach/imx-uart.h
index d54eb1d..3a685e1 100644
--- a/arch/arm/mach-imx/include/mach/imx-uart.h
+++ b/arch/arm/mach-imx/include/mach/imx-uart.h
@@ -4,8 +4,6 @@
#define IMXUART_HAVE_RTSCTS (1<<0)
struct imxuart_platform_data {
- int (*init)(struct platform_device *pdev);
- void (*exit)(struct platform_device *pdev);
unsigned int flags;
};
diff --git a/arch/arm/plat-mxc/include/mach/imx-uart.h b/arch/arm/plat-mxc/include/mach/imx-uart.h
index 599217b..a938eba 100644
--- a/arch/arm/plat-mxc/include/mach/imx-uart.h
+++ b/arch/arm/plat-mxc/include/mach/imx-uart.h
@@ -22,8 +22,6 @@
#define IMXUART_HAVE_RTSCTS (1<<0)
struct imxuart_platform_data {
- int (*init)(struct platform_device *pdev);
- int (*exit)(struct platform_device *pdev);
unsigned int flags;
};
diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c
index a509546..6e78a77 100644
--- a/drivers/serial/imx.c
+++ b/drivers/serial/imx.c
@@ -1144,19 +1144,10 @@ static int serial_imx_probe(struct platform_device *pdev)
if(pdata && (pdata->flags & IMXUART_HAVE_RTSCTS))
sport->have_rtscts = 1;
- if (pdata->init) {
- ret = pdata->init(pdev);
- if (ret)
- goto clkput;
- }
-
uart_add_one_port(&imx_reg, &sport->port);
platform_set_drvdata(pdev, &sport->port);
return 0;
-clkput:
- clk_put(sport->clk);
- clk_disable(sport->clk);
unmap:
iounmap(sport->port.membase);
free:
@@ -1181,9 +1172,6 @@ static int serial_imx_remove(struct platform_device *pdev)
clk_disable(sport->clk);
- if (pdata->exit)
- pdata->exit(pdev);
-
iounmap(sport->port.membase);
kfree(sport);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-24 15:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-24 15:57 [RFC PATCH 3/3] imx-uart: remove unused init()/exit() from platform_data Paulius Zaleckas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox