Loading drivers/mfd/motorola-cpcap.c +1 −12 Original line number Diff line number Diff line Loading @@ -260,17 +260,7 @@ static int cpcap_probe(struct spi_device *spi) if (ret) return ret; return of_platform_populate(spi->dev.of_node, NULL, NULL, &cpcap->spi->dev); } static int cpcap_remove(struct spi_device *pdev) { struct cpcap_ddata *cpcap = spi_get_drvdata(pdev); of_platform_depopulate(&cpcap->spi->dev); return 0; return devm_of_platform_populate(&cpcap->spi->dev); } static struct spi_driver cpcap_driver = { Loading @@ -279,7 +269,6 @@ static struct spi_driver cpcap_driver = { .of_match_table = cpcap_of_match, }, .probe = cpcap_probe, .remove = cpcap_remove, }; module_spi_driver(cpcap_driver); Loading Loading
drivers/mfd/motorola-cpcap.c +1 −12 Original line number Diff line number Diff line Loading @@ -260,17 +260,7 @@ static int cpcap_probe(struct spi_device *spi) if (ret) return ret; return of_platform_populate(spi->dev.of_node, NULL, NULL, &cpcap->spi->dev); } static int cpcap_remove(struct spi_device *pdev) { struct cpcap_ddata *cpcap = spi_get_drvdata(pdev); of_platform_depopulate(&cpcap->spi->dev); return 0; return devm_of_platform_populate(&cpcap->spi->dev); } static struct spi_driver cpcap_driver = { Loading @@ -279,7 +269,6 @@ static struct spi_driver cpcap_driver = { .of_match_table = cpcap_of_match, }, .probe = cpcap_probe, .remove = cpcap_remove, }; module_spi_driver(cpcap_driver); Loading