V4L/DVB: tvp7002: fix compilation breakage when advanced debug is enabled
authorHans Verkuil <hverkuil@xs4all.nl>
Thu, 25 Feb 2010 20:34:09 +0000 (17:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:11:01 +0000 (15:11 -0300)
commitdfbd5d4d324e630aedc40b7519351a9c0fe94dc9
treef88dc124891a4b808bbdc0c7fb78195f43f1839a
parent0b67553657330b5ad5c78a974ce84273a515fe4e
V4L/DVB: tvp7002: fix compilation breakage when advanced debug is enabled

> On Mon, 22 Feb 2010 08:21:44 -0800 Randy Dunlap wrote:
> drivers/media/video/tvp7002.c:896: error: 'struct tvp7002' has no member named 'registers'
>
> so where are these registers??

Hmm, that code is a remnant from older revisions of this driver. Unfortunately,
when I compiled this driver before creating my pull request I forgot to turn on
the CONFIG_VIDEO_ADV_DEBUG option and so I never saw it.

Also fixed the g_register function: it never returned a register
value in the original code.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/tvp7002.c