Skip to content

Commit

Permalink
ALSA: sh: Fix up namespace collision in sh_dac_audio.
Browse files Browse the repository at this point in the history
The module_platform_driver() conversion ended up tripping over the driver
name, leading to confusion in the macro with regards to 'driver' being
redefined. rename it to something slightly more suitable to avoid
namespace collisions.

sound/sh/sh_dac_audio.c:444:122: error: conflicting types for 'driver_init'
include/linux/device.h:773:6: note: previous declaration of 'driver_init' was here
make[3]: *** [sound/sh/sh_dac_audio.o] Error 1

Signed-off-by: Paul Mundt <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
pmundt authored and tiwai committed May 21, 2012
1 parent e182534 commit d4c6983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/sh/sh_dac_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,12 +433,12 @@ static int __devinit snd_sh_dac_probe(struct platform_device *devptr)
/*
* "driver" definition
*/
static struct platform_driver driver = {
static struct platform_driver sh_dac_driver = {
.probe = snd_sh_dac_probe,
.remove = snd_sh_dac_remove,
.driver = {
.name = "dac_audio",
},
};

module_platform_driver(driver);
module_platform_driver(sh_dac_driver);

0 comments on commit d4c6983

Please sign in to comment.