Commit 46658200 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB skeleton: missed a dev_get_drvdata usage

parent a152252f
......@@ -235,7 +235,7 @@ static int skel_open (struct inode *inode, struct file *file)
return -ENODEV;
}
dev = dev_get_drvdata (&interface->dev);
dev = usb_get_intfdata(interface);
if (!dev)
return -ENODEV;
......
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