forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MODULE_PARM was actually breaking: recent gcc version optimize them out as unused. It's time to replace the last users, which are generally in the most unloved drivers anyway. Signed-off-by: Rusty Russell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
1 parent
c721bcc
commit 8d3b33f
Showing
56 changed files
with
146 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,7 +88,7 @@ parameters. for a copy email: [email protected] | |
|
||
MODULE_PARMS definitions | ||
------------------------ | ||
MODULE_PARM(defaultorder, "i"); | ||
module_param(defaultorder, ulong, 0); | ||
defaultorder=N | ||
where N is a value from 1 to 12 | ||
The buffer order determines the size of the dma buffer for the driver. | ||
|
@@ -98,18 +98,18 @@ to not underrun the dma buffer as easily. As default, use 32k (order=3) | |
rather than 64k as some of the games work more responsively. | ||
(2^N) * PAGE_SIZE = allocated buffer size | ||
|
||
MODULE_PARM(cs_debuglevel, "i"); | ||
MODULE_PARM(cs_debugmask, "i"); | ||
module_param(cs_debuglevel, ulong, 0644); | ||
module_param(cs_debugmask, ulong, 0644); | ||
cs_debuglevel=N | ||
cs_debugmask=0xMMMMMMMM | ||
where N is a value from 0 (no debug printfs), to 9 (maximum) | ||
0xMMMMMMMM is a debug mask corresponding to the CS_xxx bits (see driver source). | ||
|
||
MODULE_PARM(hercules_egpio_disable, "i"); | ||
module_param(hercules_egpio_disable, ulong, 0); | ||
hercules_egpio_disable=N | ||
where N is a 0 (enable egpio), or a 1 (disable egpio support) | ||
|
||
MODULE_PARM(initdelay, "i"); | ||
module_param(initdelay, ulong, 0); | ||
initdelay=N | ||
This value is used to determine the millescond delay during the initialization | ||
code prior to powering up the PLL. On laptops this value can be used to | ||
|
@@ -118,19 +118,19 @@ system is booted under battery power then the mdelay()/udelay() functions fail t | |
properly delay the required time. Also, if the system is booted under AC power | ||
and then the power removed, the mdelay()/udelay() functions will not delay properly. | ||
|
||
MODULE_PARM(powerdown, "i"); | ||
module_param(powerdown, ulong, 0); | ||
powerdown=N | ||
where N is 0 (disable any powerdown of the internal blocks) or 1 (enable powerdown) | ||
|
||
|
||
MODULE_PARM(external_amp, "i"); | ||
module_param(external_amp, bool, 0); | ||
external_amp=1 | ||
if N is set to 1, then force enabling the EAPD support in the primary AC97 codec. | ||
override the detection logic and force the external amp bit in the AC97 0x26 register | ||
to be reset (0). EAPD should be 0 for powerup, and 1 for powerdown. The VTB Santa Cruz | ||
card has inverted logic, so there is a special function for these cards. | ||
|
||
MODULE_PARM(thinkpad, "i"); | ||
module_param(thinkpad, bool, 0); | ||
thinkpad=1 | ||
if N is set to 1, then force enabling the clkrun functionality. | ||
Currently, when the part is being used, then clkrun is disabled for the entire system, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,10 +70,10 @@ MODULE_AUTHOR("Pauline Middelink <[email protected]>"); | |
MODULE_DESCRIPTION("Zoran ZR36120 based framegrabber"); | ||
MODULE_LICENSE("GPL"); | ||
|
||
MODULE_PARM(triton1,"i"); | ||
MODULE_PARM(cardtype,"1-" __MODULE_STRING(ZORAN_MAX) "i"); | ||
MODULE_PARM(video_nr,"i"); | ||
MODULE_PARM(vbi_nr,"i"); | ||
module_param(triton1, uint, 0); | ||
module_param_array(cardtype, uint, NULL, 0); | ||
module_param(video_nr, int, 0); | ||
module_param(vbi_nr, int, 0); | ||
|
||
static int zoran_cards; | ||
static struct zoran zorans[ZORAN_MAX]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
|
||
#ifdef CONFIG_MTD_DEBUG | ||
static int debug = CONFIG_MTD_DEBUG_VERBOSE; | ||
MODULE_PARM(debug, "i"); | ||
module_param(debug, int, 0); | ||
MODULE_PARM_DESC(debug, "Set Debug Level 0=quiet, 5=noisy"); | ||
#undef DEBUG | ||
#define DEBUG(n, format, arg...) \ | ||
|
@@ -89,17 +89,17 @@ static int mem_type; | |
MODULE_LICENSE("GPL"); | ||
MODULE_AUTHOR("Simon Evans <[email protected]>"); | ||
MODULE_DESCRIPTION(DRIVER_DESC); | ||
MODULE_PARM(bankwidth, "i"); | ||
module_param(bankwidth, int, 0); | ||
MODULE_PARM_DESC(bankwidth, "Set bankwidth (1=8 bit, 2=16 bit, default=2)"); | ||
MODULE_PARM(mem_speed, "i"); | ||
module_param(mem_speed, int, 0); | ||
MODULE_PARM_DESC(mem_speed, "Set memory access speed in ns"); | ||
MODULE_PARM(force_size, "i"); | ||
module_param(force_size, int, 0); | ||
MODULE_PARM_DESC(force_size, "Force size of card in MiB (1-64)"); | ||
MODULE_PARM(setvpp, "i"); | ||
module_param(setvpp, int, 0); | ||
MODULE_PARM_DESC(setvpp, "Set Vpp (0=Never, 1=On writes, 2=Always on, default=0)"); | ||
MODULE_PARM(vpp, "i"); | ||
module_param(vpp, int, 0); | ||
MODULE_PARM_DESC(vpp, "Vpp value in 1/10ths eg 33=3.3V 120=12V (Dangerous)"); | ||
MODULE_PARM(mem_type, "i"); | ||
module_param(mem_type, int, 0); | ||
MODULE_PARM_DESC(mem_type, "Set Memory type (0=Flash, 1=RAM, 2=ROM, default=0)"); | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -192,12 +192,15 @@ | |
static char version[] __devinitdata = | ||
DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; | ||
|
||
static int cassini_debug = -1; /* -1 == use CAS_DEF_MSG_ENABLE as value */ | ||
static int link_mode; | ||
|
||
MODULE_AUTHOR("Adrian Sun ([email protected])"); | ||
MODULE_DESCRIPTION("Sun Cassini(+) ethernet driver"); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_PARM(cassini_debug, "i"); | ||
module_param(cassini_debug, int, 0); | ||
MODULE_PARM_DESC(cassini_debug, "Cassini bitmapped debugging message enable value"); | ||
MODULE_PARM(link_mode, "i"); | ||
module_param(link_mode, int, 0); | ||
MODULE_PARM_DESC(link_mode, "default link mode"); | ||
|
||
/* | ||
|
@@ -209,7 +212,7 @@ MODULE_PARM_DESC(link_mode, "default link mode"); | |
* Value in seconds, for user input. | ||
*/ | ||
static int linkdown_timeout = DEFAULT_LINKDOWN_TIMEOUT; | ||
MODULE_PARM(linkdown_timeout, "i"); | ||
module_param(linkdown_timeout, int, 0); | ||
MODULE_PARM_DESC(linkdown_timeout, | ||
"min reset interval in sec. for PCS linkdown issue; disabled if not positive"); | ||
|
||
|
@@ -221,8 +224,6 @@ MODULE_PARM_DESC(linkdown_timeout, | |
static int link_transition_timeout; | ||
|
||
|
||
static int cassini_debug = -1; /* -1 == use CAS_DEF_MSG_ENABLE as value */ | ||
static int link_mode; | ||
|
||
static u16 link_modes[] __devinitdata = { | ||
BMCR_ANENABLE, /* 0 : autoneg */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.