diff options
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/mpu3050.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/input/misc/mpu3050.c b/drivers/input/misc/mpu3050.c index f71dc728da58..e9a57e3dba08 100644 --- a/drivers/input/misc/mpu3050.c +++ b/drivers/input/misc/mpu3050.c | |||
@@ -348,11 +348,18 @@ static const struct i2c_device_id mpu3050_ids[] = { | |||
348 | }; | 348 | }; |
349 | MODULE_DEVICE_TABLE(i2c, mpu3050_ids); | 349 | MODULE_DEVICE_TABLE(i2c, mpu3050_ids); |
350 | 350 | ||
351 | static const struct of_device_id mpu3050_of_match[] = { | ||
352 | { .compatible = "invn,mpu3050", }, | ||
353 | { }, | ||
354 | }; | ||
355 | MODULE_DEVICE_TABLE(of, mpu3050_of_match); | ||
356 | |||
351 | static struct i2c_driver mpu3050_i2c_driver = { | 357 | static struct i2c_driver mpu3050_i2c_driver = { |
352 | .driver = { | 358 | .driver = { |
353 | .name = "mpu3050", | 359 | .name = "mpu3050", |
354 | .owner = THIS_MODULE, | 360 | .owner = THIS_MODULE, |
355 | .pm = &mpu3050_pm, | 361 | .pm = &mpu3050_pm, |
362 | .of_match_table = mpu3050_of_match, | ||
356 | }, | 363 | }, |
357 | .probe = mpu3050_probe, | 364 | .probe = mpu3050_probe, |
358 | .remove = __devexit_p(mpu3050_remove), | 365 | .remove = __devexit_p(mpu3050_remove), |