Skip to contentSkip to conversation

gpio-patchset-fixups: no static init

PATCH New Jim Cromie 1 participant 1 message Jun 22, 2006

Subsystems (2)
lore
Share & tools
lore

Jim Cromie

author maintainer
#0 lore raw

PATCH 6/11 gpio-patchset-fixups: no static init

diff.13-fix-static-no-init

static vars don't need to be initialized.

---

drivers/char/pc8736x_gpio.c +0 -0
diff -ruNp -X dontdiff -X exclude-diffs 17-mm-pre0/drivers/char/pc8736x_gpio.c 13/drivers/char/pc8736x_gpio.c
@@ -28,7 +28,7 @@ MODULE_AUTHOR("Jim Cromie <jim.cromie@gm

MODULE_DESCRIPTION("NatSemi PC-8736x GPIO Pin Driver"); MODULE_LICENSE("GPL");

-static int major = 0; /* default to dynamic major */
+static int major; /* default to dynamic major */
module_param(major, int, 0);
MODULE_PARM_DESC(major, "Major device number");