Skip to content

Commit

Permalink
sound: oss: fix build warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
sudipm-mukherjee authored and tiwai committed May 18, 2015
1 parent 785d8c4 commit 108c5df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/oss/ad1848.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand All @@ -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)
{
Expand Down

0 comments on commit 108c5df

Please sign in to comment.