Merge remote-tracking branch 'spi/topic/bfin' into spi-next
This commit is contained in:
@@ -229,7 +229,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",
|
||||
@@ -260,8 +260,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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user