projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6221df6
)
spi: clps711x: use devm_spi_register_master()
author
Jingoo Han
<jg1.han@samsung.com>
Tue, 24 Sep 2013 04:27:48 +0000
(13:27 +0900)
committer
Mark Brown
<broonie@linaro.org>
Thu, 26 Sep 2013 10:42:31 +0000
(11:42 +0100)
Use devm_spi_register_master() to make cleanup paths simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-clps711x.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-clps711x.c
b/drivers/spi/spi-clps711x.c
index b597a92565dc7e99f6d466de8788ebac92319af1..f2b1a1c33907d5f794c21fad1295e0338b8237db 100644
(file)
--- a/
drivers/spi/spi-clps711x.c
+++ b/
drivers/spi/spi-clps711x.c
@@
-230,7
+230,7
@@
static int spi_clps711x_probe(struct platform_device *pdev)
goto clk_out;
}
- ret =
spi_register_master(
master);
+ ret =
devm_spi_register_master(&pdev->dev,
master);
if (!ret) {
dev_info(&pdev->dev,
"SPI bus driver initialized. Master clock %u Hz\n",
@@
-261,8
+261,6
@@
static int spi_clps711x_remove(struct platform_device *pdev)
if (gpio_is_valid(hw->chipselect[i]))
gpio_free(hw->chipselect[i]);
- spi_unregister_master(master);
-
return 0;
}