projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8916c1
)
driver core: properly get driver in device_release_driver
author
Stefan Richter
<stefanr@s5r6.in-berlin.de>
Sun, 17 Jun 2007 09:01:18 +0000
(11:01 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 11 Jul 2007 23:09:01 +0000
(16:09 -0700)
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/dd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/base/dd.c
b/drivers/base/dd.c
index b0088b0efecdd1e5395e4104d23d0fe34dbb9a0d..3c503e1f69a2b4051390427292ebb7559f17cd9b 100644
(file)
--- a/
drivers/base/dd.c
+++ b/
drivers/base/dd.c
@@
-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);