[media] video: vicam: Add MODULE_FIRMWARE
authorTim Gardner <tim.gardner@canonical.com>
Thu, 12 Apr 2012 20:23:21 +0000 (17:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 19 Apr 2012 17:40:09 +0000 (14:40 -0300)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Cc: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/vicam.c

index 911152e169d6d43c4a42dd47fffa0542dd1e96f9..e48ec4db6da4cbe881e0cc569768553d7fa68109 100644 (file)
 #include <linux/ihex.h>
 #include "gspca.h"
 
+#define VICAM_FIRMWARE "vicam/firmware.fw"
+
 MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>");
 MODULE_DESCRIPTION("GSPCA ViCam USB Camera Driver");
 MODULE_LICENSE("GPL");
+MODULE_FIRMWARE(VICAM_FIRMWARE);
 
 enum e_ctrl {
        GAIN,
@@ -268,7 +271,7 @@ static int sd_init(struct gspca_dev *gspca_dev)
        const struct firmware *uninitialized_var(fw);
        u8 *firmware_buf;
 
-       ret = request_ihex_firmware(&fw, "vicam/firmware.fw",
+       ret = request_ihex_firmware(&fw, VICAM_FIRMWARE,
                                    &gspca_dev->dev->dev);
        if (ret) {
                pr_err("Failed to load \"vicam/firmware.fw\": %d\n", ret);