diff options
Diffstat (limited to 'drivers/message')
-rw-r--r-- | drivers/message/fusion/mptbase.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index e866dacde7e5..414c109f4cf5 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
@@ -88,7 +88,9 @@ module_param(mpt_channel_mapping, int, 0); | |||
88 | MODULE_PARM_DESC(mpt_channel_mapping, " Mapping id's to channels (default=0)"); | 88 | MODULE_PARM_DESC(mpt_channel_mapping, " Mapping id's to channels (default=0)"); |
89 | 89 | ||
90 | static int mpt_debug_level; | 90 | static int mpt_debug_level; |
91 | module_param(mpt_debug_level, int, 0); | 91 | static int mpt_set_debug_level(const char *val, struct kernel_param *kp); |
92 | module_param_call(mpt_debug_level, mpt_set_debug_level, param_get_int, | ||
93 | &mpt_debug_level, 0600); | ||
92 | MODULE_PARM_DESC(mpt_debug_level, " debug level - refer to mptdebug.h - (default=0)"); | 94 | MODULE_PARM_DESC(mpt_debug_level, " debug level - refer to mptdebug.h - (default=0)"); |
93 | 95 | ||
94 | #ifdef MFCNT | 96 | #ifdef MFCNT |
@@ -220,6 +222,19 @@ pci_enable_io_access(struct pci_dev *pdev) | |||
220 | pci_write_config_word(pdev, PCI_COMMAND, command_reg); | 222 | pci_write_config_word(pdev, PCI_COMMAND, command_reg); |
221 | } | 223 | } |
222 | 224 | ||
225 | static int mpt_set_debug_level(const char *val, struct kernel_param *kp) | ||
226 | { | ||
227 | int ret = param_set_int(val, kp); | ||
228 | MPT_ADAPTER *ioc; | ||
229 | |||
230 | if (ret) | ||
231 | return ret; | ||
232 | |||
233 | list_for_each_entry(ioc, &ioc_list, list) | ||
234 | ioc->debug_level = mpt_debug_level; | ||
235 | return 0; | ||
236 | } | ||
237 | |||
223 | /* | 238 | /* |
224 | * Process turbo (context) reply... | 239 | * Process turbo (context) reply... |
225 | */ | 240 | */ |