]> git.baikalelectronics.ru Git - kernel.git/commit
pcmcia: sa1111: simplify clk handing in sa1111_pcmcia_add()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 26 Mar 2015 10:46:35 +0000 (10:46 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 Sep 2015 15:00:44 +0000 (16:00 +0100)
commitfb7e32e7824dfdf8d961a362af4da69bdb01796b
treeb77e52578752f4ca4d61e29adb07b1355b7d3a25
parent666df1e4ac8e155db53e2eae34681a2be45bbd4b
pcmcia: sa1111: simplify clk handing in sa1111_pcmcia_add()

clk_get(dev, NULL) will always refer to the same clock, so it's
pointless calling this multiple times for the same device.  As we no
longer have to worry about the cleanup (via use of devm_clk_get()) we
can simplify sa1111_pcmcia_add() too.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/pcmcia/sa1111_generic.c