Skip to content

Commit

Permalink
bus: fsl-mc: add .shutdown() op for the bus driver
Browse files Browse the repository at this point in the history
The fsl-mc bus driver is missing the .shutdown() callback, so add it.
The implementation simply calls the .remove() callback.

Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Link: https://lore.kernel.org/r/20210715140718.8513-4-laurentiu.tudor@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
tudorl authored and gregkh committed Jul 21, 2021
1 parent c40cbad commit 3ab520c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/bus/fsl-mc/fsl-mc-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1206,6 +1206,11 @@ static int fsl_mc_bus_remove(struct platform_device *pdev)
return 0;
}

static void fsl_mc_bus_shutdown(struct platform_device *pdev)
{
fsl_mc_bus_remove(pdev);
}

static const struct of_device_id fsl_mc_bus_match_table[] = {
{.compatible = "fsl,qoriq-mc",},
{},
Expand All @@ -1228,6 +1233,7 @@ static struct platform_driver fsl_mc_bus_driver = {
},
.probe = fsl_mc_bus_probe,
.remove = fsl_mc_bus_remove,
.shutdown = fsl_mc_bus_shutdown,
};

static int __init fsl_mc_bus_driver_init(void)
Expand Down

0 comments on commit 3ab520c

Please sign in to comment.