提交 836e4b14 编写于 作者: P Paul Mundt 提交者: Linus Torvalds

USB: m66592-udc: Fix up dev_set_name() badness.

Commit 0031a06e converted all of the USB
drivers to use dev_set_name(), though there was a typo on the m66592-udc
conversion that handed off the wrong pointer (we want the struct device
here obviously, not the struct usb_gadget).
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 204b885e
...@@ -1593,7 +1593,7 @@ static int __init m66592_probe(struct platform_device *pdev) ...@@ -1593,7 +1593,7 @@ static int __init m66592_probe(struct platform_device *pdev)
m66592->gadget.ops = &m66592_gadget_ops; m66592->gadget.ops = &m66592_gadget_ops;
device_initialize(&m66592->gadget.dev); device_initialize(&m66592->gadget.dev);
dev_set_name(&m66592->gadget, "gadget"); dev_set_name(&m66592->gadget.dev, "gadget");
m66592->gadget.is_dualspeed = 1; m66592->gadget.is_dualspeed = 1;
m66592->gadget.dev.parent = &pdev->dev; m66592->gadget.dev.parent = &pdev->dev;
m66592->gadget.dev.dma_mask = pdev->dev.dma_mask; m66592->gadget.dev.dma_mask = pdev->dev.dma_mask;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册