diff options
-rw-r--r-- | drivers/i2c/busses/i2c-cros-ec-tunnel.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-cros-ec-tunnel.c b/drivers/i2c/busses/i2c-cros-ec-tunnel.c index 05e033c98115..0403ec1dc3b5 100644 --- a/drivers/i2c/busses/i2c-cros-ec-tunnel.c +++ b/drivers/i2c/busses/i2c-cros-ec-tunnel.c | |||
@@ -310,11 +310,20 @@ static int ec_i2c_remove(struct platform_device *dev) | |||
310 | return 0; | 310 | return 0; |
311 | } | 311 | } |
312 | 312 | ||
313 | #ifdef CONFIG_OF | ||
314 | static const struct of_device_id cros_ec_i2c_of_match[] = { | ||
315 | { .compatible = "google,cros-ec-i2c-tunnel" }, | ||
316 | {}, | ||
317 | }; | ||
318 | MODULE_DEVICE_TABLE(of, cros_ec_i2c_of_match); | ||
319 | #endif | ||
320 | |||
313 | static struct platform_driver ec_i2c_tunnel_driver = { | 321 | static struct platform_driver ec_i2c_tunnel_driver = { |
314 | .probe = ec_i2c_probe, | 322 | .probe = ec_i2c_probe, |
315 | .remove = ec_i2c_remove, | 323 | .remove = ec_i2c_remove, |
316 | .driver = { | 324 | .driver = { |
317 | .name = "cros-ec-i2c-tunnel", | 325 | .name = "cros-ec-i2c-tunnel", |
326 | .of_match_table = of_match_ptr(cros_ec_i2c_of_match), | ||
318 | }, | 327 | }, |
319 | }; | 328 | }; |
320 | 329 | ||