aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2005-09-16 02:15:13 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-09-16 02:56:36 -0400
commit65853b133d0256786df25f03eea0e5a6799e8d17 (patch)
tree38c3d8007e70992829271a2fcf453624d4afadd2 /drivers/net
parent76209926e3756f66c9cdc8a4becbf34df8c47799 (diff)
[PATCH] orinoco: Remove conditionals that are useless in the kernel drivers.
Author: Pavel Roskin <proski@gnu.org> Date: Fri Sep 16 00:49:05 2005 -0400 Remove conditionals that are useless in the kernel drivers. Kernel drivers are never compiled against pcmcia-cs headers. Firmware is never embedded into spectrum_cs module. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/orinoco_cs.c3
-rw-r--r--drivers/net/wireless/spectrum_cs.c26
2 files changed, 1 insertions, 28 deletions
diff --git a/drivers/net/wireless/orinoco_cs.c b/drivers/net/wireless/orinoco_cs.c
index bedd7f9f23e4..1cedabf583b3 100644
--- a/drivers/net/wireless/orinoco_cs.c
+++ b/drivers/net/wireless/orinoco_cs.c
@@ -14,9 +14,6 @@
14#define PFX DRIVER_NAME ": " 14#define PFX DRIVER_NAME ": "
15 15
16#include <linux/config.h> 16#include <linux/config.h>
17#ifdef __IN_PCMCIA_PACKAGE__
18#include <pcmcia/k_compat.h>
19#endif /* __IN_PCMCIA_PACKAGE__ */
20 17
21#include <linux/module.h> 18#include <linux/module.h>
22#include <linux/kernel.h> 19#include <linux/kernel.h>
diff --git a/drivers/net/wireless/spectrum_cs.c b/drivers/net/wireless/spectrum_cs.c
index 39c6cdf7f3f7..256d31b42966 100644
--- a/drivers/net/wireless/spectrum_cs.c
+++ b/drivers/net/wireless/spectrum_cs.c
@@ -22,9 +22,6 @@
22#define PFX DRIVER_NAME ": " 22#define PFX DRIVER_NAME ": "
23 23
24#include <linux/config.h> 24#include <linux/config.h>
25#ifdef __IN_PCMCIA_PACKAGE__
26#include <pcmcia/k_compat.h>
27#endif /* __IN_PCMCIA_PACKAGE__ */
28 25
29#include <linux/module.h> 26#include <linux/module.h>
30#include <linux/kernel.h> 27#include <linux/kernel.h>
@@ -38,6 +35,7 @@
38#include <linux/if_arp.h> 35#include <linux/if_arp.h>
39#include <linux/etherdevice.h> 36#include <linux/etherdevice.h>
40#include <linux/wireless.h> 37#include <linux/wireless.h>
38#include <linux/firmware.h>
41 39
42#include <pcmcia/cs_types.h> 40#include <pcmcia/cs_types.h>
43#include <pcmcia/cs.h> 41#include <pcmcia/cs.h>
@@ -51,29 +49,10 @@
51 49
52#include "orinoco.h" 50#include "orinoco.h"
53 51
54/*
55 * If SPECTRUM_FW_INCLUDED is defined, the firmware is hardcoded into
56 * the driver. Use get_symbol_fw script to generate spectrum_fw.h and
57 * copy it to the same directory as spectrum_cs.c.
58 *
59 * If SPECTRUM_FW_INCLUDED is not defined, the firmware is loaded at the
60 * runtime using hotplug. Use the same get_symbol_fw script to generate
61 * files symbol_sp24t_prim_fw symbol_sp24t_sec_fw, copy them to the
62 * hotplug firmware directory (typically /usr/lib/hotplug/firmware) and
63 * make sure that you have hotplug installed and enabled in the kernel.
64 */
65/* #define SPECTRUM_FW_INCLUDED 1 */
66
67#ifdef SPECTRUM_FW_INCLUDED
68/* Header with the firmware */
69#include "spectrum_fw.h"
70#else /* !SPECTRUM_FW_INCLUDED */
71#include <linux/firmware.h>
72static unsigned char *primsym; 52static unsigned char *primsym;
73static unsigned char *secsym; 53static unsigned char *secsym;
74static const char primary_fw_name[] = "symbol_sp24t_prim_fw"; 54static const char primary_fw_name[] = "symbol_sp24t_prim_fw";
75static const char secondary_fw_name[] = "symbol_sp24t_sec_fw"; 55static const char secondary_fw_name[] = "symbol_sp24t_sec_fw";
76#endif /* !SPECTRUM_FW_INCLUDED */
77 56
78/********************************************************************/ 57/********************************************************************/
79/* Module stuff */ 58/* Module stuff */
@@ -571,8 +550,6 @@ spectrum_dl_firmware(hermes_t *hw, dev_link_t *link)
571{ 550{
572 int ret; 551 int ret;
573 client_handle_t handle = link->handle; 552 client_handle_t handle = link->handle;
574
575#ifndef SPECTRUM_FW_INCLUDED
576 const struct firmware *fw_entry; 553 const struct firmware *fw_entry;
577 554
578 if (request_firmware(&fw_entry, primary_fw_name, 555 if (request_firmware(&fw_entry, primary_fw_name,
@@ -592,7 +569,6 @@ spectrum_dl_firmware(hermes_t *hw, dev_link_t *link)
592 secondary_fw_name); 569 secondary_fw_name);
593 return -ENOENT; 570 return -ENOENT;
594 } 571 }
595#endif
596 572
597 /* Load primary firmware */ 573 /* Load primary firmware */
598 ret = spectrum_dl_image(hw, link, primsym); 574 ret = spectrum_dl_image(hw, link, primsym);