diff options
Diffstat (limited to 'linux/drivers/media/video/upd64031a.c')
-rw-r--r-- | linux/drivers/media/video/upd64031a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/upd64031a.c b/linux/drivers/media/video/upd64031a.c index ae0a843ff..3a7db9f7a 100644 --- a/linux/drivers/media/video/upd64031a.c +++ b/linux/drivers/media/video/upd64031a.c @@ -20,7 +20,6 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include "compat.h" #include <linux/version.h> #include <linux/module.h> @@ -29,6 +28,7 @@ #include <linux/videodev2.h> #include <media/v4l2-common.h> #include <media/upd64031a.h> +#include "compat.h" // --------------------- read registers functions define ----------------------- @@ -175,7 +175,7 @@ static int upd64031a_command(struct i2c_client *client, unsigned int cmd, void * { struct v4l2_register *reg = arg; - if (reg->i2c_id != I2C_DRIVERID_UPD64031A) + if (!v4l2_chip_match_i2c_client(client, reg->match_type, reg->match_chip)) return -EINVAL; if (!capable(CAP_SYS_ADMIN)) return -EPERM; |