Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c24f2c9 authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman
Browse files

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: default avatarWolfram Sang <wsa@the-dreams.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4829e765
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -1103,7 +1103,7 @@ static int mxs_auart_probe(struct platform_device *pdev)
	s->port.fifosize = 16;
	s->port.fifosize = 16;
	s->port.uartclk = clk_get_rate(s->clk);
	s->port.uartclk = clk_get_rate(s->clk);
	s->port.type = PORT_IMX;
	s->port.type = PORT_IMX;
	s->port.dev = s->dev = get_device(&pdev->dev);
	s->port.dev = s->dev = &pdev->dev;


	s->ctrl = 0;
	s->ctrl = 0;


@@ -1134,7 +1134,6 @@ out_free_irq:
	auart_port[pdev->id] = NULL;
	auart_port[pdev->id] = NULL;
	free_irq(s->irq, s);
	free_irq(s->irq, s);
out_free_clk:
out_free_clk:
	put_device(s->dev);
	clk_put(s->clk);
	clk_put(s->clk);
out_free:
out_free:
	kfree(s);
	kfree(s);
@@ -1150,7 +1149,6 @@ static int mxs_auart_remove(struct platform_device *pdev)


	auart_port[pdev->id] = NULL;
	auart_port[pdev->id] = NULL;


	put_device(s->dev);
	clk_put(s->clk);
	clk_put(s->clk);
	free_irq(s->irq, s);
	free_irq(s->irq, s);
	kfree(s);
	kfree(s);