diff options
author | Tim Gardner <tim.gardner@canonical.com> | 2012-08-03 12:39:28 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-08-12 04:49:03 -0400 |
commit | 229fd7d2f19c650c34034885180f91574e837bbb (patch) | |
tree | 4b2f7eeb44ae0c152731d899f94f07f5dba1dd32 /drivers/media | |
parent | ddb9fa25be0babd17952821f76897931b56d490f (diff) |
[media] cpia2: Declare MODULE_FIRMWARE usage
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Cc: linux-media@vger.kernel.org
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/cpia2/cpia2_core.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/cpia2/cpia2_core.c b/drivers/media/video/cpia2/cpia2_core.c index 17188e234770..187012ce444b 100644 --- a/drivers/media/video/cpia2/cpia2_core.c +++ b/drivers/media/video/cpia2/cpia2_core.c | |||
@@ -31,11 +31,15 @@ | |||
31 | 31 | ||
32 | #include "cpia2.h" | 32 | #include "cpia2.h" |
33 | 33 | ||
34 | #include <linux/module.h> | ||
34 | #include <linux/slab.h> | 35 | #include <linux/slab.h> |
35 | #include <linux/mm.h> | 36 | #include <linux/mm.h> |
36 | #include <linux/vmalloc.h> | 37 | #include <linux/vmalloc.h> |
37 | #include <linux/firmware.h> | 38 | #include <linux/firmware.h> |
38 | 39 | ||
40 | #define FIRMWARE "cpia2/stv0672_vp4.bin" | ||
41 | MODULE_FIRMWARE(FIRMWARE); | ||
42 | |||
39 | /* #define _CPIA2_DEBUG_ */ | 43 | /* #define _CPIA2_DEBUG_ */ |
40 | 44 | ||
41 | #ifdef _CPIA2_DEBUG_ | 45 | #ifdef _CPIA2_DEBUG_ |
@@ -898,7 +902,7 @@ static int cpia2_send_onebyte_command(struct camera_data *cam, | |||
898 | static int apply_vp_patch(struct camera_data *cam) | 902 | static int apply_vp_patch(struct camera_data *cam) |
899 | { | 903 | { |
900 | const struct firmware *fw; | 904 | const struct firmware *fw; |
901 | const char fw_name[] = "cpia2/stv0672_vp4.bin"; | 905 | const char fw_name[] = FIRMWARE; |
902 | int i, ret; | 906 | int i, ret; |
903 | struct cpia2_command cmd; | 907 | struct cpia2_command cmd; |
904 | 908 | ||