Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi/bcm63xx-hsspi: use devm_register_master()

Simplifies the remove call.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Jonas Gorski and committed by
Mark Brown
7d255695 dea5de1b

+1 -3
+1 -3
drivers/spi/spi-bcm63xx-hsspi.c
··· 399 399 goto out_put_master; 400 400 401 401 /* register and we are done */ 402 - ret = spi_register_master(master); 402 + ret = devm_spi_register_master(dev, master); 403 403 if (ret) 404 404 goto out_put_master; 405 405 ··· 417 417 { 418 418 struct spi_master *master = platform_get_drvdata(pdev); 419 419 struct bcm63xx_hsspi *bs = spi_master_get_devdata(master); 420 - 421 - spi_unregister_master(master); 422 420 423 421 /* reset the hardware and block queue progress */ 424 422 __raw_writel(0, bs->regs + HSSPI_INT_MASK_REG);