From 6d71fec9a405dc5db9cf11b691b13f48c7e764bf Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Fri, 23 Dec 2011 01:20:44 -0800 Subject: [PATCH] --- yaml --- r: 282405 b: refs/heads/master c: e948981aa0c97b6fcaa8626eeddb0340e175e9d7 h: refs/heads/master i: 282403: 9bcf81474b782681157f71478218db77c5419cf3 v: v3 --- [refs] | 2 +- trunk/drivers/input/misc/mpu3050.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index c1dca5d6da7e..d78eb1e5919b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e24f734ef12571e7106d948208cc9aeae74de876 +refs/heads/master: e948981aa0c97b6fcaa8626eeddb0340e175e9d7 diff --git a/trunk/drivers/input/misc/mpu3050.c b/trunk/drivers/input/misc/mpu3050.c index f71dc728da58..e9a57e3dba08 100644 --- a/trunk/drivers/input/misc/mpu3050.c +++ b/trunk/drivers/input/misc/mpu3050.c @@ -348,11 +348,18 @@ static const struct i2c_device_id mpu3050_ids[] = { }; MODULE_DEVICE_TABLE(i2c, mpu3050_ids); +static const struct of_device_id mpu3050_of_match[] = { + { .compatible = "invn,mpu3050", }, + { }, +}; +MODULE_DEVICE_TABLE(of, mpu3050_of_match); + static struct i2c_driver mpu3050_i2c_driver = { .driver = { .name = "mpu3050", .owner = THIS_MODULE, .pm = &mpu3050_pm, + .of_match_table = mpu3050_of_match, }, .probe = mpu3050_probe, .remove = __devexit_p(mpu3050_remove),