X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sound%2Fsound_firmware.c;h=026347643c8177266359513c255b930b8bf8307e;hb=1c74a7f812b135d3df41d7c3671b647aed6467bf;hp=b155137ee312a5105517718d483b2db322958943;hpb=54be8200198ddfc6cb396720460c19881fac2d5a;p=deliverable%2Flinux.git diff --git a/sound/sound_firmware.c b/sound/sound_firmware.c index b155137ee312..026347643c81 100644 --- a/sound/sound_firmware.c +++ b/sound/sound_firmware.c @@ -12,7 +12,6 @@ static int do_mod_firmware_load(const char *fn, char **fp) struct file* filp; long l; char *dp; - loff_t pos; filp = filp_open(fn, 0, 0); if (IS_ERR(filp)) @@ -34,8 +33,7 @@ static int do_mod_firmware_load(const char *fn, char **fp) fput(filp); return 0; } - pos = 0; - if (vfs_read(filp, dp, l, &pos) != l) + if (kernel_read(filp, 0, dp, l) != l) { printk(KERN_INFO "Failed to read '%s'.\n", fn); vfree(dp);