diff options
author | Mark Brown <broonie@linaro.org> | 2013-10-25 04:51:21 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-25 04:51:21 -0400 |
commit | 52d85ebb7b639448e596a8577bf981f5b139f4fd (patch) | |
tree | 7632999ecf194b9863ad4a86533a91b9f78a28ce /drivers/spi/spi-clps711x.c | |
parent | 2ef2e60d2f4d470b0cb591baeaf942316c0673ed (diff) | |
parent | db9371b853e7cebce93f0775215ef297b8d0bf93 (diff) |
Merge remote-tracking branch 'spi/topic/bfin' into spi-next
Diffstat (limited to 'drivers/spi/spi-clps711x.c')
-rw-r--r-- | drivers/spi/spi-clps711x.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-clps711x.c b/drivers/spi/spi-clps711x.c index 6416798828e7..7f2fd33ad4d9 100644 --- a/drivers/spi/spi-clps711x.c +++ b/drivers/spi/spi-clps711x.c | |||
@@ -229,7 +229,7 @@ static int spi_clps711x_probe(struct platform_device *pdev) | |||
229 | goto clk_out; | 229 | goto clk_out; |
230 | } | 230 | } |
231 | 231 | ||
232 | ret = spi_register_master(master); | 232 | ret = devm_spi_register_master(&pdev->dev, master); |
233 | if (!ret) { | 233 | if (!ret) { |
234 | dev_info(&pdev->dev, | 234 | dev_info(&pdev->dev, |
235 | "SPI bus driver initialized. Master clock %u Hz\n", | 235 | "SPI bus driver initialized. Master clock %u Hz\n", |
@@ -260,8 +260,6 @@ static int spi_clps711x_remove(struct platform_device *pdev) | |||
260 | if (gpio_is_valid(hw->chipselect[i])) | 260 | if (gpio_is_valid(hw->chipselect[i])) |
261 | gpio_free(hw->chipselect[i]); | 261 | gpio_free(hw->chipselect[i]); |
262 | 262 | ||
263 | spi_unregister_master(master); | ||
264 | |||
265 | return 0; | 263 | return 0; |
266 | } | 264 | } |
267 | 265 | ||