diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-03-08 15:21:04 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-03-08 15:21:04 -0500 |
commit | 988addf82e4c03739375279de73929580a2d4a6a (patch) | |
tree | 989ae1cd4e264bbad80c65f04480486246e7b9f3 /drivers/serial/imx.c | |
parent | 004c1c7096659d352b83047a7593e91d8a30e3c5 (diff) | |
parent | 25cf84cf377c0aae5dbcf937ea89bc7893db5176 (diff) |
Merge branch 'origin' into devel-stable
Conflicts:
arch/arm/mach-mx2/devices.c
arch/arm/mach-mx2/devices.h
sound/soc/pxa/pxa-ssp.c
Diffstat (limited to 'drivers/serial/imx.c')
-rw-r--r-- | drivers/serial/imx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c index b801f5ab2b7b..e579d7a1807a 100644 --- a/drivers/serial/imx.c +++ b/drivers/serial/imx.c | |||
@@ -1279,7 +1279,7 @@ static int serial_imx_probe(struct platform_device *pdev) | |||
1279 | sport->use_irda = 1; | 1279 | sport->use_irda = 1; |
1280 | #endif | 1280 | #endif |
1281 | 1281 | ||
1282 | if (pdata->init) { | 1282 | if (pdata && pdata->init) { |
1283 | ret = pdata->init(pdev); | 1283 | ret = pdata->init(pdev); |
1284 | if (ret) | 1284 | if (ret) |
1285 | goto clkput; | 1285 | goto clkput; |
@@ -1292,7 +1292,7 @@ static int serial_imx_probe(struct platform_device *pdev) | |||
1292 | 1292 | ||
1293 | return 0; | 1293 | return 0; |
1294 | deinit: | 1294 | deinit: |
1295 | if (pdata->exit) | 1295 | if (pdata && pdata->exit) |
1296 | pdata->exit(pdev); | 1296 | pdata->exit(pdev); |
1297 | clkput: | 1297 | clkput: |
1298 | clk_put(sport->clk); | 1298 | clk_put(sport->clk); |
@@ -1321,7 +1321,7 @@ static int serial_imx_remove(struct platform_device *pdev) | |||
1321 | 1321 | ||
1322 | clk_disable(sport->clk); | 1322 | clk_disable(sport->clk); |
1323 | 1323 | ||
1324 | if (pdata->exit) | 1324 | if (pdata && pdata->exit) |
1325 | pdata->exit(pdev); | 1325 | pdata->exit(pdev); |
1326 | 1326 | ||
1327 | iounmap(sport->port.membase); | 1327 | iounmap(sport->port.membase); |