Commit d74185b4 authored by Tim Gardner's avatar Tim Gardner Committed by Mauro Carvalho Chehab

[media] video: vicam: Add MODULE_FIRMWARE

Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Cc: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent a020182a
...@@ -37,9 +37,12 @@ ...@@ -37,9 +37,12 @@
#include <linux/ihex.h> #include <linux/ihex.h>
#include "gspca.h" #include "gspca.h"
#define VICAM_FIRMWARE "vicam/firmware.fw"
MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>"); MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>");
MODULE_DESCRIPTION("GSPCA ViCam USB Camera Driver"); MODULE_DESCRIPTION("GSPCA ViCam USB Camera Driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_FIRMWARE(VICAM_FIRMWARE);
enum e_ctrl { enum e_ctrl {
GAIN, GAIN,
...@@ -268,7 +271,7 @@ static int sd_init(struct gspca_dev *gspca_dev) ...@@ -268,7 +271,7 @@ static int sd_init(struct gspca_dev *gspca_dev)
const struct firmware *uninitialized_var(fw); const struct firmware *uninitialized_var(fw);
u8 *firmware_buf; u8 *firmware_buf;
ret = request_ihex_firmware(&fw, "vicam/firmware.fw", ret = request_ihex_firmware(&fw, VICAM_FIRMWARE,
&gspca_dev->dev->dev); &gspca_dev->dev->dev);
if (ret) { if (ret) {
pr_err("Failed to load \"vicam/firmware.fw\": %d\n", ret); pr_err("Failed to load \"vicam/firmware.fw\": %d\n", ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment