aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/udc.c
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2013-03-30 06:53:51 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-30 11:08:39 -0400
commit2d6512892c106556f07e502939005e73cdc6e2cc (patch)
treeb22c386e25574e314cd50745a4289c5407e5af52 /drivers/usb/chipidea/udc.c
parent69b7e8d34f12a5770d57ccd38926d373e4599561 (diff)
usb: chipidea: convert debug entries in sysfs to debugfs
Currently, we have a bunch of files in sysfs that display all sorts of debugging information for the device controller, so they have to move to debugfs where they belong. The "registers" interface have been removed, since it doesn't fit into the current driver design as is and it's hardly a good idea to touch the registers from userspace anyway. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/udc.c')
-rw-r--r--drivers/usb/chipidea/udc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c
index ed498cb7fbfa..d945391e3c6c 100644
--- a/drivers/usb/chipidea/udc.c
+++ b/drivers/usb/chipidea/udc.c
@@ -1697,7 +1697,7 @@ static int udc_start(struct ci13xxx *ci)
1697 goto put_transceiver; 1697 goto put_transceiver;
1698 } 1698 }
1699 1699
1700 retval = dbg_create_files(ci->dev); 1700 retval = dbg_create_files(ci);
1701 if (retval) 1701 if (retval)
1702 goto unreg_device; 1702 goto unreg_device;
1703 1703
@@ -1726,7 +1726,7 @@ remove_trans:
1726 1726
1727 dev_err(dev, "error = %i\n", retval); 1727 dev_err(dev, "error = %i\n", retval);
1728remove_dbg: 1728remove_dbg:
1729 dbg_remove_files(ci->dev); 1729 dbg_remove_files(ci);
1730unreg_device: 1730unreg_device:
1731 device_unregister(&ci->gadget.dev); 1731 device_unregister(&ci->gadget.dev);
1732put_transceiver: 1732put_transceiver:
@@ -1763,7 +1763,7 @@ static void udc_stop(struct ci13xxx *ci)
1763 if (ci->global_phy) 1763 if (ci->global_phy)
1764 usb_put_phy(ci->transceiver); 1764 usb_put_phy(ci->transceiver);
1765 } 1765 }
1766 dbg_remove_files(ci->dev); 1766 dbg_remove_files(ci);
1767 device_unregister(&ci->gadget.dev); 1767 device_unregister(&ci->gadget.dev);
1768 /* my kobject is dynamic, I swear! */ 1768 /* my kobject is dynamic, I swear! */
1769 memset(&ci->gadget, 0, sizeof(ci->gadget)); 1769 memset(&ci->gadget, 0, sizeof(ci->gadget));