File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1391,6 +1391,15 @@ static int bcm2835_spi_remove(struct platform_device *pdev)
1391
1391
return 0 ;
1392
1392
}
1393
1393
1394
+ static void bcm2835_spi_shutdown (struct platform_device * pdev )
1395
+ {
1396
+ int ret ;
1397
+
1398
+ ret = bcm2835_spi_remove (pdev );
1399
+ if (ret )
1400
+ dev_err (& pdev -> dev , "failed to shutdown\n" );
1401
+ }
1402
+
1394
1403
static const struct of_device_id bcm2835_spi_match [] = {
1395
1404
{ .compatible = "brcm,bcm2835-spi" , },
1396
1405
{}
@@ -1404,6 +1413,7 @@ static struct platform_driver bcm2835_spi_driver = {
1404
1413
},
1405
1414
.probe = bcm2835_spi_probe ,
1406
1415
.remove = bcm2835_spi_remove ,
1416
+ .shutdown = bcm2835_spi_shutdown ,
1407
1417
};
1408
1418
module_platform_driver (bcm2835_spi_driver );
1409
1419
You can’t perform that action at this time.
0 commit comments