projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4440805
)
remove compile error while disable usb host function
author
yangkai
<yangkai@ubuntu-fs>
Wed, 18 May 2011 10:12:42 +0000
(18:12 +0800)
committer
yangkai
<yangkai@ubuntu-fs>
Wed, 18 May 2011 10:12:42 +0000
(18:12 +0800)
drivers/usb/dwc_otg/dwc_otg_driver.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc_otg/dwc_otg_driver.c
b/drivers/usb/dwc_otg/dwc_otg_driver.c
index ebc3e3c750877c8cdfbeb1afd43d27ff5921aefb..79560d98e39c893b5ef20ba2251c608b728f7de8 100755
(executable)
--- a/
drivers/usb/dwc_otg/dwc_otg_driver.c
+++ b/
drivers/usb/dwc_otg/dwc_otg_driver.c
@@
-330,7
+330,7
@@
static ssize_t dbg_level_store(struct device_driver *_drv, const char *_buf,
return _count;
}
static DRIVER_ATTR(debuglevel, S_IRUGO|S_IWUSR, dbg_level_show, dbg_level_store);
-
+#ifdef CONFIG_USB
static ssize_t dwc_otg_enable_show( struct device *_dev,
struct device_attribute *attr, char *buf)
{
@@
-385,7
+385,7
@@
static ssize_t dwc_otg_enable_store( struct device *_dev,
return count;
}
static DEVICE_ATTR(enable, S_IRUGO|S_IWUSR, dwc_otg_enable_show, dwc_otg_enable_store);
-
+#endif
static ssize_t dwc_otg_conn_en_show(struct device_driver *_drv, char *_buf)
{
#ifdef CONFIG_DWC_OTG_DEVICE_ONLY