X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=sound%2Fsound_core.c;h=49c998186592906a74a07df8d5ccbe59281f5726;hb=390d0bbe88b3ef00c28086076d791533407f298e;hp=bb4b88e606bba6a533ef8647da54bf666e62be64;hpb=59b69e27ca9f6c6347b1ec07066a9250140cb9e8;p=~andy%2Flinux diff --git a/sound/sound_core.c b/sound/sound_core.c index bb4b88e606b..49c99818659 100644 --- a/sound/sound_core.c +++ b/sound/sound_core.c @@ -29,7 +29,7 @@ MODULE_DESCRIPTION("Core sound module"); MODULE_AUTHOR("Alan Cox"); MODULE_LICENSE("GPL"); -static char *sound_nodename(struct device *dev) +static char *sound_devnode(struct device *dev, mode_t *mode) { if (MAJOR(dev->devt) == SOUND_MAJOR) return NULL; @@ -50,7 +50,7 @@ static int __init init_soundcore(void) return PTR_ERR(sound_class); } - sound_class->nodename = sound_nodename; + sound_class->devnode = sound_devnode; return 0; }