提交 3284b4e0 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

V4L/DVB (5415): Msp_attach must return 0 if no msp3400 was found.

Returning -1 causes the probe to stop, but it should just continue
instead.
Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 a9aaec4e
...@@ -825,7 +825,7 @@ static int msp_attach(struct i2c_adapter *adapter, int address, int kind) ...@@ -825,7 +825,7 @@ static int msp_attach(struct i2c_adapter *adapter, int address, int kind)
if (msp_reset(client) == -1) { if (msp_reset(client) == -1) {
v4l_dbg(1, msp_debug, client, "msp3400 not found\n"); v4l_dbg(1, msp_debug, client, "msp3400 not found\n");
kfree(client); kfree(client);
return -1; return 0;
} }
state = kmalloc(sizeof(*state), GFP_KERNEL); state = kmalloc(sizeof(*state), GFP_KERNEL);
...@@ -859,7 +859,7 @@ static int msp_attach(struct i2c_adapter *adapter, int address, int kind) ...@@ -859,7 +859,7 @@ static int msp_attach(struct i2c_adapter *adapter, int address, int kind)
v4l_dbg(1, msp_debug, client, "not an msp3400 (cannot read chip version)\n"); v4l_dbg(1, msp_debug, client, "not an msp3400 (cannot read chip version)\n");
kfree(state); kfree(state);
kfree(client); kfree(client);
return -1; return 0;
} }
msp_set_audio(client); msp_set_audio(client);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册