diff -ubBwr alsa-driver/kernel/info.c alsa-driver-0.5.7-tmp/kernel/info.c --- alsa-driver/kernel/info.c Thu Apr 6 05:51:23 2000 +++ alsa-driver-0.5.7-tmp/kernel/info.c Mon Apr 17 07:45:52 2000 @@ -595,9 +595,15 @@ return len; } +#ifdef LINUX_2_3 +static int snd_info_card_followlink(struct dentry *dentry, + struct nameidata *nd) +#else + static struct dentry *snd_info_card_followlink(struct dentry *dentry, struct dentry *base, unsigned int follow) +#endif { snd_card_t *card; char tmp[16]; @@ -606,11 +612,19 @@ card = snd_info_find_card(dentry->d_inode->i_ino); if (card == NULL || card->proc_dir == NULL) { up(&info_mutex); +#ifdef LINUX_2_3 + return -ENOENT; +#else return NULL; +#endif } strcpy(tmp, card->id); up(&info_mutex); +#ifdef LINUX_2_3 + return vfs_follow_link(nd, tmp); +#else return lookup_dentry(tmp, base, follow); +#endif } #ifndef NEW_INODE_OPS