Skip to content

Commit

Permalink
V4L/DVB (9884): gspca - ov534: Fix a warning when compilation without…
Browse files Browse the repository at this point in the history
… GSPCA_DEBUG.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Dec 30, 2008
1 parent e6e4837 commit 1dc87b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/video/gspca/ov534.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 },
Expand Down

0 comments on commit 1dc87b6

Please sign in to comment.