diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-12-14 03:50:24 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 06:39:05 -0500 |
commit | 1dc87b6e2fb29777f921c733d78df7eea31e6cc8 (patch) | |
tree | bb593ca39dc17802e2cff8f49d3404b26e52082d /drivers/media/video/gspca/ov534.c | |
parent | e6e483782772994fe42ef9e8b5b4d6f6376b3d45 (diff) |
V4L/DVB (9884): gspca - ov534: Fix a warning when compilation without GSPCA_DEBUG.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/ov534.c')
-rw-r--r-- | drivers/media/video/gspca/ov534.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/ov534.c b/drivers/media/video/gspca/ov534.c index ad97b0be5f39..7332947cb2c8 100644 --- a/drivers/media/video/gspca/ov534.c +++ b/drivers/media/video/gspca/ov534.c | |||
@@ -149,6 +149,7 @@ static void sccb_reg_write(struct usb_device *udev, u16 reg, u8 val) | |||
149 | PDEBUG(D_ERR, "sccb_reg_write failed"); | 149 | PDEBUG(D_ERR, "sccb_reg_write failed"); |
150 | } | 150 | } |
151 | 151 | ||
152 | #ifdef GSPCA_DEBUG | ||
152 | static u8 sccb_reg_read(struct usb_device *udev, u16 reg) | 153 | static u8 sccb_reg_read(struct usb_device *udev, u16 reg) |
153 | { | 154 | { |
154 | ov534_reg_write(udev, OV534_REG_SUBADDR, reg); | 155 | ov534_reg_write(udev, OV534_REG_SUBADDR, reg); |
@@ -162,6 +163,7 @@ static u8 sccb_reg_read(struct usb_device *udev, u16 reg) | |||
162 | 163 | ||
163 | return ov534_reg_read(udev, OV534_REG_READ); | 164 | return ov534_reg_read(udev, OV534_REG_READ); |
164 | } | 165 | } |
166 | #endif | ||
165 | 167 | ||
166 | static const __u8 ov534_reg_initdata[][2] = { | 168 | static const __u8 ov534_reg_initdata[][2] = { |
167 | { 0xe7, 0x3a }, | 169 | { 0xe7, 0x3a }, |