summaryrefslogtreecommitdiff
path: root/sound/oss
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-05-14 14:12:59 +0300
committerTakashi Iwai <tiwai@suse.de>2015-05-18 11:27:17 +0300
commit108c5df14a5fcc4a5470df2de091c48d54a553a3 (patch)
tree41e1406cdc5f956631d4c23b633522a2c904f0d6 /sound/oss
parent785d8c4be82b45d10ff0d5cebfddadb1e1f6ae15 (diff)
downloadlinux-108c5df14a5fcc4a5470df2de091c48d54a553a3.tar.xz
sound: oss: fix build warning
while building with allyesconfig it was giving a build warning about unused variable. declare the variable only if the driver is built as a module. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/oss')
-rw-r--r--sound/oss/ad1848.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/oss/ad1848.c b/sound/oss/ad1848.c
index ec1ee07df59d..10c8de1f8d29 100644
--- a/sound/oss/ad1848.c
+++ b/sound/oss/ad1848.c
@@ -2860,6 +2860,7 @@ static struct {
{NULL}
};
+#ifdef MODULE
static struct isapnp_device_id id_table[] = {
{ ISAPNP_VENDOR('C','M','I'), ISAPNP_DEVICE(0x0001),
ISAPNP_VENDOR('@','@','@'), ISAPNP_FUNCTION(0x0001), 0 },
@@ -2877,6 +2878,7 @@ static struct isapnp_device_id id_table[] = {
};
MODULE_DEVICE_TABLE(isapnp, id_table);
+#endif
static struct pnp_dev *activate_dev(char *devname, char *resname, struct pnp_dev *dev)
{