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)
commit321ae9646bbfdf27550ecb65617322abc2b92052
treeb77e52578752f4ca4d61e29adb07b1355b7d3a25
parent924e5ea2ce0f6addb8b098760d840b0923573d19
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