aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2008-02-08 07:19:30 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-08 12:22:30 -0500
commit62fb44b9622e4c0e00f31fb27620d97a00ae3dc6 (patch)
treeaf24a0a8c98ab5cbf7aa1d1f77d6b2cc85151179 /drivers/usb
parent1eb114112381eb66ebacdace1b6e70d30d603f9c (diff)
usb: net2280 can't have a function called show_registers()
net2280 can't have a function called show_registers() because this can produce a namespace clash with an arch function of the same name. All this driver's functions and variables should really be prefixed with "net2280_" to avoid such a problem in future. Signed-off-by: David Howells <dhowells@redhat.com> Cc: Greg KH <greg@kroah.com> Cc: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/net2280.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c
index 33469cf5aec3..e01862300169 100644
--- a/drivers/usb/gadget/net2280.c
+++ b/drivers/usb/gadget/net2280.c
@@ -1418,8 +1418,8 @@ show_function (struct device *_dev, struct device_attribute *attr, char *buf)
1418} 1418}
1419static DEVICE_ATTR (function, S_IRUGO, show_function, NULL); 1419static DEVICE_ATTR (function, S_IRUGO, show_function, NULL);
1420 1420
1421static ssize_t 1421static ssize_t net2280_show_registers(struct device *_dev,
1422show_registers (struct device *_dev, struct device_attribute *attr, char *buf) 1422 struct device_attribute *attr, char *buf)
1423{ 1423{
1424 struct net2280 *dev; 1424 struct net2280 *dev;
1425 char *next; 1425 char *next;
@@ -1571,7 +1571,7 @@ show_registers (struct device *_dev, struct device_attribute *attr, char *buf)
1571 1571
1572 return PAGE_SIZE - size; 1572 return PAGE_SIZE - size;
1573} 1573}
1574static DEVICE_ATTR (registers, S_IRUGO, show_registers, NULL); 1574static DEVICE_ATTR(registers, S_IRUGO, net2280_show_registers, NULL);
1575 1575
1576static ssize_t 1576static ssize_t
1577show_queues (struct device *_dev, struct device_attribute *attr, char *buf) 1577show_queues (struct device *_dev, struct device_attribute *attr, char *buf)