X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=sound%2Fsound_core.c;h=49c998186592906a74a07df8d5ccbe59281f5726;hb=4c8f1cb266cba4d1052f524d04df839d8f732ace;hp=bb4b88e606bba6a533ef8647da54bf666e62be64;hpb=07198871dac00e9c250d647e1976d7aee527b805;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; }