Staging: vt6655: fix build when !CONFIG_WIRELESS_EXT

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, September 16, 2009 - 9:01 am

Gitweb:     http://git.kernel.org/linus/761e95493982f3365e6ef34991a6c7ff84e33d25
Commit:     761e95493982f3365e6ef34991a6c7ff84e33d25
Parent:     5d1fe0c98f2aef99fb57aaf6dd25e793c186cea3
Author:     Alexander Beregalov <a.beregalov@gmail.com>
AuthorDate: Sat Jun 20 19:07:40 2009 +0400
Committer:  Greg Kroah-Hartman <gregkh@suse.de>
CommitDate: Tue Sep 15 12:01:32 2009 -0700

    Staging: vt6655: fix build when !CONFIG_WIRELESS_EXT
    
    Fix this build error when CONFIG_WIRELESS_EXT is not set:
    drivers/staging/vt6655/device_main.c:1153: error: 'struct net_device'
    	has no member named 'wireless_handlers'
    
    Cc: Forest Bond <forest@alittletooquiet.net>
    Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 drivers/staging/vt6655/device_main.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index f43ca41..0a11d7f 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -1146,14 +1146,9 @@ device_found1(struct pci_dev *pcid, const struct pci_device_id *ent)
     dev->irq                = pcid->irq;
     dev->netdev_ops         = &device_netdev_ops;
 
-#ifdef WIRELESS_EXT
-//Einsn Modify for ubuntu-7.04
-//	dev->wireless_handlers->get_wireless_stats = iwctl_get_wireless_stats;
-#if WIRELESS_EXT > 12
+#ifdef CONFIG_WIRELESS_EXT
 	dev->wireless_handlers = (struct iw_handler_def *)&iwctl_handler_def;
-//	netdev->wireless_handlers = NULL;
-#endif /* WIRELESS_EXT > 12 */
-#endif /* WIRELESS_EXT */
+#endif
 
     rc = register_netdev(dev);
     if (rc)
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Staging: vt6655: fix build when !CONFIG_WIRELESS_EXT, Linux Kernel Mailing ..., (Wed Sep 16, 9:01 am)