* [PATCH] orinoco_usb: fix -Wunused-variable, remove version
@ 2012-02-10 15:02 Danny Kukawka
0 siblings, 0 replies; only message in thread
From: Danny Kukawka @ 2012-02-10 15:02 UTC (permalink / raw)
To: John W. Linville
Cc: Danny Kukawka, David S. Miller, Jiri Pirko, Greg Kroah-Hartman,
linux-wireless, orinoco-devel, netdev, linux-kernel
Commit d632eb1bf22e11def74e4e53cc47d790fbdba105 removed
usage of version[], remove no longer needed variable and
print version instead in ezusb_probe().
Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
---
drivers/net/wireless/orinoco/orinoco_usb.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/net/wireless/orinoco/orinoco_usb.c b/drivers/net/wireless/orinoco/orinoco_usb.c
index ae8ce56..2b413cf 100644
--- a/drivers/net/wireless/orinoco/orinoco_usb.c
+++ b/drivers/net/wireless/orinoco/orinoco_usb.c
@@ -1583,6 +1583,8 @@ static int ezusb_probe(struct usb_interface *interface,
int retval = 0;
int i;
+ printk(KERN_DEBUG DRIVER_NAME " " DRIVER_VERSION);
+
priv = alloc_orinocodev(sizeof(*upriv), &udev->dev,
ezusb_hard_reset, NULL);
if (!priv) {
@@ -1754,11 +1756,6 @@ static struct usb_driver orinoco_driver = {
.id_table = ezusb_table,
};
-/* Can't be declared "const" or the whole __initdata section will
- * become const */
-static char version[] __initdata = DRIVER_NAME " " DRIVER_VERSION
- " (Manuel Estrada Sainz)";
-
module_usb_driver(orinoco_driver);
MODULE_AUTHOR("Manuel Estrada Sainz");
--
1.7.7.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-10 15:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-10 15:02 [PATCH] orinoco_usb: fix -Wunused-variable, remove version Danny Kukawka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®