Since recently we have kernel_read_file_from_path(), and it's doing the same thing as our own home-baked mod_firmware_load(). Let's use the official API function and clean up the old code. Signed-off-by: Takashi Iwai <tiwai@suse.de>linux...
err = kernel_read_file_from_path((char *)fn, (void **)fp, &size, 131072, READING_FIRMWARE); if (err < 0) return 0; return size; } 77 changes: 0 additions & 77 deletions 77 sound/sound_firmware.c Load diff This file was deleted. 0 comments on commit 0984d15 ...
int kernel_read_file_from_path(const char *path, void **buf, loff_t *size, loff_t max_size, enum kernel_read_file_id id) { struct file *file; 2 changes: 1 addition & 1 deletion 2 include/linux/fs.h Original file line numberDiff line numberDiff line change @@ -2815,7 +2815...