mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
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>
This commit is contained in:
parent
785d8c4be8
commit
108c5df14a
1 changed files with 2 additions and 0 deletions
|
@ -2860,6 +2860,7 @@ static struct {
|
||||||
{NULL}
|
{NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef MODULE
|
||||||
static struct isapnp_device_id id_table[] = {
|
static struct isapnp_device_id id_table[] = {
|
||||||
{ ISAPNP_VENDOR('C','M','I'), ISAPNP_DEVICE(0x0001),
|
{ ISAPNP_VENDOR('C','M','I'), ISAPNP_DEVICE(0x0001),
|
||||||
ISAPNP_VENDOR('@','@','@'), ISAPNP_FUNCTION(0x0001), 0 },
|
ISAPNP_VENDOR('@','@','@'), ISAPNP_FUNCTION(0x0001), 0 },
|
||||||
|
@ -2877,6 +2878,7 @@ static struct isapnp_device_id id_table[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
MODULE_DEVICE_TABLE(isapnp, id_table);
|
MODULE_DEVICE_TABLE(isapnp, id_table);
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct pnp_dev *activate_dev(char *devname, char *resname, struct pnp_dev *dev)
|
static struct pnp_dev *activate_dev(char *devname, char *resname, struct pnp_dev *dev)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue