Commit 1a90740a authored by Patrick Mochel's avatar Patrick Mochel

[driver model] Remove extraneous get_device() from class_device_add().

From Greg: 

I took out the other put_device() in the -bk tree in class_device_del() 
but forgot to remove this one. 
parent 94d1b985
...@@ -264,8 +264,6 @@ int class_device_add(struct class_device *class_dev) ...@@ -264,8 +264,6 @@ int class_device_add(struct class_device *class_dev)
return -EINVAL; return -EINVAL;
parent = class_get(class_dev->class); parent = class_get(class_dev->class);
if (class_dev->dev)
get_device(class_dev->dev);
pr_debug("CLASS: registering class device: ID = '%s'\n", pr_debug("CLASS: registering class device: ID = '%s'\n",
class_dev->class_id); class_dev->class_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment