]> git.hungrycats.org Git - linux/commitdiff
[PATCH] namespace pollution in korg 1212 driver
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Jan 2003 12:15:30 +0000 (04:15 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Mon, 13 Jan 2003 12:15:30 +0000 (04:15 -0800)
From:  Arnd Bergmann <arnd@bergmann-dalldorf.de>

  The korg1212 driver has a global variable named 'rc' that pollutes
  the namespace. This makes it static.

sound/pci/korg1212/korg1212.c

index aa523b8b4b51c9f03270098d59ef4413c39cbe33..75f26090ed672912c72697a996d81598ab9374d4 100644 (file)
@@ -464,7 +464,7 @@ u16 ClockSourceSelector[] = {0x8000,   // selects source as ADAT at 44.1 kHz
                              0x0002    // selects source as local clock at 48 kHz
                             };
 
-snd_korg1212rc rc;
+static snd_korg1212rc rc;
 
 
 MODULE_DEVICE_TABLE(pci, snd_korg1212_ids);