diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-03-11 00:21:07 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2007-03-11 00:21:07 +0100 |
commit | 601996ee9254ab5352f12e2670cc1f1cd9181da3 (patch) | |
tree | f3d2ab1902d7d29c77decad0dafc2db563881d9c /linux/drivers/media/video | |
parent | a36c1b8c1e460d442f783d8e4708c464f4836758 (diff) | |
download | mediapointer-dvb-s2-601996ee9254ab5352f12e2670cc1f1cd9181da3.tar.gz mediapointer-dvb-s2-601996ee9254ab5352f12e2670cc1f1cd9181da3.tar.bz2 |
msp_attach must return 0 if no msp3400 was found.
From: Hans Verkuil <hverkuil@xs4all.nl>
Returning -1 causes the probe to stop, but it should just continue
instead.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/msp3400-driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/msp3400-driver.c b/linux/drivers/media/video/msp3400-driver.c index 0e21a5b57..66002ed1b 100644 --- a/linux/drivers/media/video/msp3400-driver.c +++ b/linux/drivers/media/video/msp3400-driver.c @@ -894,7 +894,7 @@ static int msp_attach(struct i2c_adapter *adapter, int address, int kind) if (msp_reset(client) == -1) { v4l_dbg(1, msp_debug, client, "msp3400 not found\n"); kfree(client); - return -1; + return 0; } state = kmalloc(sizeof(*state), GFP_KERNEL); @@ -928,7 +928,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"); kfree(state); kfree(client); - return -1; + return 0; } #if 0 |