linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/7] ath5k: Remove obsolete sysctl stuff
@ 2007-10-27 23:13 Nick Kossifidis
  0 siblings, 0 replies; only message in thread
From: Nick Kossifidis @ 2007-10-27 23:13 UTC (permalink / raw)
  To: ath5k-devel, linux-wireless; +Cc: linville, jirislaby, mcgrof

Remove sysctl tables.

We shouldn't use /proc to configure things.

Changes-licensed-under: 3-clause-BSD
Signed-Off-by: Nick Kossifidis <mickflemm@gmail.com>

---
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c
index 73c0a38..382bb23 100644
--- a/drivers/net/wireless/ath5k/base.c
+++ b/drivers/net/wireless/ath5k/base.c
@@ -203,50 +203,6 @@ MODULE_DEVICE_TABLE(pci, ath5k_pci_id_table);
 
 
 /*
- * Sysctl tables
- */
-static int mincalibrate = 1;
-static int maxcalibrate = INT_MAX / 1000;
-static ctl_table ath5k_static_sysctls[] = {
-#if AR_DEBUG
-	{
-	  .procname	= "debug",
-	  .mode		= 0644,
-	  .data		= &ath5k_debug,
-	  .maxlen	= sizeof(ath5k_debug),
-	  .proc_handler	= proc_dointvec
-	},
-#endif
-	{
-	  .procname	= "calibrate",
-	  .mode		= 0644,
-	  .data		= &ath5k_calinterval,
-	  .maxlen	= sizeof(ath5k_calinterval),
-	  .extra1	= &mincalibrate,
-	  .extra2	= &maxcalibrate,
-	  .proc_handler	= proc_dointvec_minmax
-	},
-	{ 0 }
-};
-static ctl_table ath5k_ath5k_table[] = {
-	{
-	  .procname	= "ath",
-	  .mode		= 0555,
-	  .child	= ath5k_static_sysctls
-	}, { 0 }
-};
-static ctl_table ath5k_root_table[] = {
-	{
-	  .ctl_name	= CTL_DEV,
-	  .procname	= "dev",
-	  .mode		= 0555,
-	  .child	= ath5k_ath5k_table
-	}, { 0 }
-};
-static struct ctl_table_header *ath5k_sysctl_header;
-
-
-/*
  * Prototypes - PCI stack related functions
  */
 static int __devinit	ath5k_pci_probe(struct pci_dev *pdev,
@@ -417,7 +373,6 @@ init_ath5k_pci(void)
 		printk(KERN_ERR "ath5k_pci: can't register pci driver\n");
 		return ret;
 	}
-	ath5k_sysctl_header = register_sysctl_table(ath5k_root_table);
 
 	return 0;
 }
@@ -425,8 +380,6 @@ init_ath5k_pci(void)
 static void __exit
 exit_ath5k_pci(void)
 {
-	if (ath5k_sysctl_header)
-		unregister_sysctl_table(ath5k_sysctl_header);
 	pci_unregister_driver(&ath5k_pci_drv_id);
 }
 
@@ -765,8 +718,7 @@ ath5k_attach(struct pci_dev *pdev, struct ieee80211_hw *hw)
 	sc->led_on = 0; /* low true */
 	/*
 	 * Auto-enable soft led processing for IBM cards and for
-	 * 5211 minipci cards.  Users can also manually enable/disable
-	 * support with a sysctl.
+	 * 5211 minipci cards.
 	 */
 	if (pdev->device == PCI_DEVICE_ID_ATHEROS_AR5212_IBM ||
 			pdev->device == PCI_DEVICE_ID_ATHEROS_AR5211) {




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-27 23:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-27 23:13 [PATCH 3/7] ath5k: Remove obsolete sysctl stuff Nick Kossifidis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).