aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/lima/lima_devfreq.c
diff options
context:
space:
mode:
authorDmitry Baryshkov <[email protected]>2020-12-12 23:55:33 +0000
committerGreg Kroah-Hartman <[email protected]>2020-12-13 15:03:42 +0000
commit46e85af0cc53f35584e00bb5db7db6893d0e16e5 (patch)
treea8c29c86ab412b3783e9d837229233fc395fd650 /drivers/gpu/drm/lima/lima_devfreq.c
parentACPI: Use fwnode_init() to set up fwnode (diff)
downloadkernel-46e85af0cc53f35584e00bb5db7db6893d0e16e5.tar.gz
kernel-46e85af0cc53f35584e00bb5db7db6893d0e16e5.zip
driver core: platform: don't oops in platform_shutdown() on unbound devices
On shutdown the driver core calls the bus' shutdown callback also for unbound devices. A driver's shutdown callback however is only called for devices bound to this driver. Commit 9c30921fe799 ("driver core: platform: use bus_type functions") changed the platform bus from driver callbacks to bus callbacks, so the shutdown function must be prepared to be called without a driver. Add the corresponding check in the shutdown function. Fixes: 9c30921fe799 ("driver core: platform: use bus_type functions") Tested-by: Guenter Roeck <[email protected]> Reviewed-by: Uwe Kleine-König <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/lima/lima_devfreq.c')
0 files changed, 0 insertions, 0 deletions