diff options
author | Michal Simek <michal.simek@xilinx.com> | 2017-08-04 09:39:16 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2017-09-09 20:33:29 +0200 |
commit | db202f4d5c24c0ed44501c1d382e4e971c6d67c7 (patch) | |
tree | 8a23e3e9b7ea54cc19b73e0f93fe33078485fe5f /drivers/watchdog/cadence_wdt.c | |
parent | 323edb2e27e8e02b0ce25e7caa8288a90a438b99 (diff) | |
download | op-kernel-dev-db202f4d5c24c0ed44501c1d382e4e971c6d67c7.zip op-kernel-dev-db202f4d5c24c0ed44501c1d382e4e971c6d67c7.tar.gz |
watchdog: cadence_wdt: Enable access to module parameters
Give read access to module parameters to all and write access to root.
This change also improves driver error path testing.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/cadence_wdt.c')
-rw-r--r-- | drivers/watchdog/cadence_wdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/watchdog/cadence_wdt.c b/drivers/watchdog/cadence_wdt.c index 05c0000..dadd3b0 100644 --- a/drivers/watchdog/cadence_wdt.c +++ b/drivers/watchdog/cadence_wdt.c @@ -52,12 +52,12 @@ static int wdt_timeout; static int nowayout = WATCHDOG_NOWAYOUT; -module_param(wdt_timeout, int, 0); +module_param(wdt_timeout, int, 0644); MODULE_PARM_DESC(wdt_timeout, "Watchdog time in seconds. (default=" __MODULE_STRING(CDNS_WDT_DEFAULT_TIMEOUT) ")"); -module_param(nowayout, int, 0); +module_param(nowayout, int, 0644); MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |