diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2014-12-03 18:42:51 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-12-05 17:30:33 +0100 |
commit | 86d88bfca4758a9a95cbd183c917d623abc3ce84 (patch) | |
tree | 2fb3b851e0fc927ad50c0cabf847dcb5d87fe858 /drivers/pcmcia/sa1100_generic.c | |
parent | ARM: 8246/2: pcmcia: sa1111: provide device clock (diff) | |
download | linux-86d88bfca4758a9a95cbd183c917d623abc3ce84.tar.xz linux-86d88bfca4758a9a95cbd183c917d623abc3ce84.zip |
ARM: 8247/2: pcmcia: sa1100: make use of device clock
Use per-device clock (instead of calling cpufreq_get(0), which can
return 0 if no cpu frequency driver is selected) to program timings.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/pcmcia/sa1100_generic.c')
-rw-r--r-- | drivers/pcmcia/sa1100_generic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pcmcia/sa1100_generic.c b/drivers/pcmcia/sa1100_generic.c index ff8a027a4afb..d2ab06048169 100644 --- a/drivers/pcmcia/sa1100_generic.c +++ b/drivers/pcmcia/sa1100_generic.c @@ -93,6 +93,7 @@ static int sa11x0_drv_pcmcia_remove(struct platform_device *dev) for (i = 0; i < sinfo->nskt; i++) soc_pcmcia_remove_one(&sinfo->skt[i]); + clk_put(sinfo->clk); kfree(sinfo); return 0; } |