summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-12-14 09:50:24 +0100
committerJean-Francois Moine <moinejf@free.fr>2008-12-14 09:50:24 +0100
commit9735b6754d8660f40063776b9197b952cb1a4e19 (patch)
tree3a48b20d49073d969942d91e96318c87dad96b48 /linux/drivers/media
parentf74cfcac767db1991854892ac24f5ff39596b851 (diff)
downloadmediapointer-dvb-s2-9735b6754d8660f40063776b9197b952cb1a4e19.tar.gz
mediapointer-dvb-s2-9735b6754d8660f40063776b9197b952cb1a4e19.tar.bz2
gspca - ov534: Fix a warning when compilation without GSPCA_DEBUG.
From: Jean-Francois Moine <moinejf@free.fr> Priority: normal Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/gspca/ov534.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/gspca/ov534.c b/linux/drivers/media/video/gspca/ov534.c
index ad97b0be5..7332947cb 100644
--- a/linux/drivers/media/video/gspca/ov534.c
+++ b/linux/drivers/media/video/gspca/ov534.c
@@ -149,6 +149,7 @@ static void sccb_reg_write(struct usb_device *udev, u16 reg, u8 val)
PDEBUG(D_ERR, "sccb_reg_write failed");
}
+#ifdef GSPCA_DEBUG
static u8 sccb_reg_read(struct usb_device *udev, u16 reg)
{
ov534_reg_write(udev, OV534_REG_SUBADDR, reg);
@@ -162,6 +163,7 @@ static u8 sccb_reg_read(struct usb_device *udev, u16 reg)
return ov534_reg_read(udev, OV534_REG_READ);
}
+#endif
static const __u8 ov534_reg_initdata[][2] = {
{ 0xe7, 0x3a },