mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
driver core: properly get driver in device_release_driver
Signed-off-by: Stefan Richter <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
f8916c11a4
commit
1f5681aae8
1 changed files with 1 additions and 2 deletions
|
|
@ -296,9 +296,8 @@ static void __device_release_driver(struct device * dev)
|
|||
{
|
||||
struct device_driver * drv;
|
||||
|
||||
drv = dev->driver;
|
||||
drv = get_driver(dev->driver);
|
||||
if (drv) {
|
||||
get_driver(drv);
|
||||
driver_sysfs_remove(dev);
|
||||
sysfs_remove_link(&dev->kobj, "driver");
|
||||
klist_remove(&dev->knode_driver);
|
||||
|
|
|
|||
Loading…
Reference in a new issue