]> 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)
commit35ce3eec1b8dd4327d8c26867c7bb739f5a12b52
treeb77e52578752f4ca4d61e29adb07b1355b7d3a25
parent072f8784f218bfd1def4cc37352fefd9ca3cef95
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