OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4176e7e
)
[media] r820t: Don't put it in standby if not initialized yet
author
Mauro Carvalho Chehab
<mchehab@redhat.com>
Thu, 11 Apr 2013 16:25:10 +0000
(13:25 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Wed, 17 Apr 2013 00:36:56 +0000
(21:36 -0300)
r820t_standby() can be called before r820t_init().
If that happens, just do nothing.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Tested-by: Antti Palosaari <crope@iki.fi>
drivers/media/tuners/r820t.c
patch
|
blob
|
history
diff --git
a/drivers/media/tuners/r820t.c
b/drivers/media/tuners/r820t.c
index
fc660f2
..
b679a3f
100644
(file)
--- a/
drivers/media/tuners/r820t.c
+++ b/
drivers/media/tuners/r820t.c
@@
-1298,6
+1298,10
@@
static int r820t_standby(struct r820t_priv *priv)
{
int rc;
+ /* If device was not initialized yet, don't need to standby */
+ if (!priv->init_done)
+ return 0;
+
rc = r820t_write_reg(priv, 0x06, 0xb1);
if (rc < 0)
return rc;