Commit d4258247 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Linus Torvalds
Browse files

drivers/pcmcia/sa1111_badge4.c: avoid unused function warning

pcmv_setup() is only used when the badge4 driver is built-in, but not
when it is a loadable module:

  drivers/pcmcia/sa1111_badge4.c:153:122: error: 'pcmv_setup' defined but not used [-Werror=unused-function]

This adds an #ifdef to avoid the definition of the unused function in
the modular case.


Signed-off-by: default avatarArnd Bergmann <>
Cc: Russell King <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 64c349f4
......@@ -144,6 +144,7 @@ int pcmcia_badge4_init(struct sa1111_dev *dev)
#ifndef MODULE
static int __init pcmv_setup(char *s)
int v[4];
......@@ -158,3 +159,4 @@ static int __init pcmv_setup(char *s)
__setup("pcmv=", pcmv_setup);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment