mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-03 04:42:13 +00:00
atlx: remove flash vendor parameter
There's no good reason to manually set the flash vendor in a module parameter, outside of an Atheros hardware lab. Remove it, so nobody accidentally bricks their board using it incorrectly. Signed-off-by: Chris Snook <csnook@redhat.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
e3152ab901
commit
3b49f03545
1 changed files with 0 additions and 39 deletions
|
@ -278,30 +278,10 @@ module_param_array_named(int_mod_timer, int_mod_timer, int,
|
||||||
&num_int_mod_timer, 0);
|
&num_int_mod_timer, 0);
|
||||||
MODULE_PARM_DESC(int_mod_timer, "Interrupt moderator timer");
|
MODULE_PARM_DESC(int_mod_timer, "Interrupt moderator timer");
|
||||||
|
|
||||||
/*
|
|
||||||
* flash_vendor
|
|
||||||
*
|
|
||||||
* Valid Range: 0-2
|
|
||||||
*
|
|
||||||
* 0 - Atmel
|
|
||||||
* 1 - SST
|
|
||||||
* 2 - ST
|
|
||||||
*
|
|
||||||
* Default Value: 0
|
|
||||||
*/
|
|
||||||
static int __devinitdata flash_vendor[ATL1_MAX_NIC+1] = ATL1_PARAM_INIT;
|
|
||||||
static int num_flash_vendor;
|
|
||||||
module_param_array_named(flash_vendor, flash_vendor, int, &num_flash_vendor, 0);
|
|
||||||
MODULE_PARM_DESC(flash_vendor, "SPI flash vendor");
|
|
||||||
|
|
||||||
#define DEFAULT_INT_MOD_CNT 100 /* 200us */
|
#define DEFAULT_INT_MOD_CNT 100 /* 200us */
|
||||||
#define MAX_INT_MOD_CNT 65000
|
#define MAX_INT_MOD_CNT 65000
|
||||||
#define MIN_INT_MOD_CNT 50
|
#define MIN_INT_MOD_CNT 50
|
||||||
|
|
||||||
#define FLASH_VENDOR_DEFAULT 0
|
|
||||||
#define FLASH_VENDOR_MIN 0
|
|
||||||
#define FLASH_VENDOR_MAX 2
|
|
||||||
|
|
||||||
struct atl1_option {
|
struct atl1_option {
|
||||||
enum { enable_option, range_option, list_option } type;
|
enum { enable_option, range_option, list_option } type;
|
||||||
char *name;
|
char *name;
|
||||||
|
@ -409,25 +389,6 @@ void __devinit atl1_check_options(struct atl1_adapter *adapter)
|
||||||
} else
|
} else
|
||||||
adapter->imt = (u16) (opt.def);
|
adapter->imt = (u16) (opt.def);
|
||||||
}
|
}
|
||||||
|
|
||||||
{ /* Flash Vendor */
|
|
||||||
struct atl1_option opt = {
|
|
||||||
.type = range_option,
|
|
||||||
.name = "SPI Flash Vendor",
|
|
||||||
.err = "using default of "
|
|
||||||
__MODULE_STRING(FLASH_VENDOR_DEFAULT),
|
|
||||||
.def = DEFAULT_INT_MOD_CNT,
|
|
||||||
.arg = {.r = {.min = FLASH_VENDOR_MIN,
|
|
||||||
.max = FLASH_VENDOR_MAX} }
|
|
||||||
};
|
|
||||||
int val;
|
|
||||||
if (num_flash_vendor > bd) {
|
|
||||||
val = flash_vendor[bd];
|
|
||||||
atl1_validate_option(&val, &opt, pdev);
|
|
||||||
adapter->hw.flash_vendor = (u8) val;
|
|
||||||
} else
|
|
||||||
adapter->hw.flash_vendor = (u8) (opt.def);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* ATLX_C */
|
#endif /* ATLX_C */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue