diff options
-rw-r--r-- | drivers/media/v4l2-core/v4l2-async.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/v4l2-core/v4l2-async.c b/drivers/media/v4l2-core/v4l2-async.c index aae241730caa..ff87c299f640 100644 --- a/drivers/media/v4l2-core/v4l2-async.c +++ b/drivers/media/v4l2-core/v4l2-async.c | |||
@@ -27,7 +27,6 @@ static bool match_i2c(struct device *dev, struct v4l2_async_subdev *asd) | |||
27 | #if IS_ENABLED(CONFIG_I2C) | 27 | #if IS_ENABLED(CONFIG_I2C) |
28 | struct i2c_client *client = i2c_verify_client(dev); | 28 | struct i2c_client *client = i2c_verify_client(dev); |
29 | return client && | 29 | return client && |
30 | asd->bus_type == V4L2_ASYNC_BUS_I2C && | ||
31 | asd->match.i2c.adapter_id == client->adapter->nr && | 30 | asd->match.i2c.adapter_id == client->adapter->nr && |
32 | asd->match.i2c.address == client->addr; | 31 | asd->match.i2c.address == client->addr; |
33 | #else | 32 | #else |
@@ -37,8 +36,7 @@ static bool match_i2c(struct device *dev, struct v4l2_async_subdev *asd) | |||
37 | 36 | ||
38 | static bool match_platform(struct device *dev, struct v4l2_async_subdev *asd) | 37 | static bool match_platform(struct device *dev, struct v4l2_async_subdev *asd) |
39 | { | 38 | { |
40 | return asd->bus_type == V4L2_ASYNC_BUS_PLATFORM && | 39 | return !strcmp(asd->match.platform.name, dev_name(dev)); |
41 | !strcmp(asd->match.platform.name, dev_name(dev)); | ||
42 | } | 40 | } |
43 | 41 | ||
44 | static LIST_HEAD(subdev_list); | 42 | static LIST_HEAD(subdev_list); |