We no longer need to store the clk pointer in struct skt_dev_info as we
no longer need to remember the clk pointer for the cleanup paths.
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk
---
drivers/pcmcia/pxa2xx_base.c | 1 -
drivers/pcmcia/sa11xx_base.c | 1 -
A library module is not required to have module init/exit functions.
Get rid of these unnecessary functions.
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk
---
drivers/pcmcia/sa11xx_base.c | 10 --
1 file changed, 10 deletions(-)
diff --git a/drivers/pcmcia/sa11xx_base.c
Update the pxa2xx socket driver to use the devm_clk_get() API so that
the cleanup paths are simplified.
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk
---
drivers/pcmcia/sa_generic.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
Fix the lack of clk_put() in sa11xx_base.c's error cleanup paths by
converting the driver to the devm_* API.
Fixes: 86d88bfca475 (ARM: 8247/2: pcmcia: sa1100: make use of device clock)
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk
---
drivers/pcmcia/sa1100_generic.c | 1 -
Convert the pxa2xx socket driver memory allocation to use devm_kzalloc()
to simplify the cleanup path.
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk
---
drivers/pcmcia/pxa2xx_base.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/pcmcia/pxa2xx_base.c
A series of PCMCIA updates for SA11x0/PXA devices consisting mainly
of patches switching the code to use the devm_* APIs, thus cleaning the
code up.
The first patch fixes an omitted clk_put() in sa11xx_base.c by switching
the clk_get to devm_clk_get().
drivers/pcmcia/pxa2xx_base.c| 17
Update the pxa2xx socket driver to use the devm_clk_get() API so that
the cleanup paths are simplified.
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk
---
drivers/pcmcia/pxa2xx_base.c | 8 ++--
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git
Convert the sa11x0 socket driver memory allocation to use devm_kzalloc()
to simplify the cleanup path.
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk
---
drivers/pcmcia/sa1100_generic.c | 1 -
drivers/pcmcia/sa11xx_base.c| 3 +--
2 files changed, 1 insertion(+), 3 deletions(-)
diff
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 sa_pcmcia_add() too.
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk