]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
greybus: Fix parameters of core_param()
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 20 Oct 2014 11:15:50 +0000 (16:45 +0530)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 20 Oct 2014 22:22:32 +0000 (06:22 +0800)
core_param() takes four parameters instead of three and so results in this
compilation error:

greybus/core.c:25:33: error: macro "core_param" requires 4 arguments, but only 3 given
 core_param(nogreybus, bool, 0444);
                                 ^

Fix this by adding proper arguments to it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/core.c

index 38f867db94111198f6bae05ef4f0a394aa5e6b61..0a37b95d226b018197b09517e4bf0f94dd2bb2a0 100644 (file)
@@ -22,7 +22,7 @@ static bool nogreybus;
 #ifdef MODULE
 module_param(nogreybus, bool, 0444);
 #else
-core_param(nogreybus, bool, 0444);
+core_param(nogreybus, nogreybus, bool, 0444);
 #endif
 int greybus_disabled(void)
 {