aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-04-19 15:06:20 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-22 13:22:21 -0400
commit4c24f2c9b671a1dacf2e25a3b059b54bb8899de1 (patch)
tree573b75cdcce90db9c524585d934bfd8e1fe488cb /drivers/tty
parent4829e7650f8a40645e4e32b26a37fb833a5e75f0 (diff)
serial: mxs: drop superfluous {get|put}_device
Driver core already takes care of refcounting, no need to do this on driver level again. Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/mxs-auart.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/tty/serial/mxs-auart.c b/drivers/tty/serial/mxs-auart.c
index 9d357da817de..62e7d3b015a1 100644
--- a/drivers/tty/serial/mxs-auart.c
+++ b/drivers/tty/serial/mxs-auart.c
@@ -1103,7 +1103,7 @@ static int mxs_auart_probe(struct platform_device *pdev)
1103 s->port.fifosize = 16; 1103 s->port.fifosize = 16;
1104 s->port.uartclk = clk_get_rate(s->clk); 1104 s->port.uartclk = clk_get_rate(s->clk);
1105 s->port.type = PORT_IMX; 1105 s->port.type = PORT_IMX;
1106 s->port.dev = s->dev = get_device(&pdev->dev); 1106 s->port.dev = s->dev = &pdev->dev;
1107 1107
1108 s->ctrl = 0; 1108 s->ctrl = 0;
1109 1109
@@ -1134,7 +1134,6 @@ out_free_irq:
1134 auart_port[pdev->id] = NULL; 1134 auart_port[pdev->id] = NULL;
1135 free_irq(s->irq, s); 1135 free_irq(s->irq, s);
1136out_free_clk: 1136out_free_clk:
1137 put_device(s->dev);
1138 clk_put(s->clk); 1137 clk_put(s->clk);
1139out_free: 1138out_free:
1140 kfree(s); 1139 kfree(s);
@@ -1150,7 +1149,6 @@ static int mxs_auart_remove(struct platform_device *pdev)
1150 1149
1151 auart_port[pdev->id] = NULL; 1150 auart_port[pdev->id] = NULL;
1152 1151
1153 put_device(s->dev);
1154 clk_put(s->clk); 1152 clk_put(s->clk);
1155 free_irq(s->irq, s); 1153 free_irq(s->irq, s);
1156 kfree(s); 1154 kfree(s);