diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2016-04-25 04:04:47 -0400 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2016-06-21 01:09:53 -0400 |
commit | 058b6659e98ffa8bc2781dba9ca56893be577ca3 (patch) | |
tree | e06b022671ac9266312e9092fef84e8a5b4a4942 /drivers/extcon/extcon-usb-gpio.c | |
parent | 04c080080855ce84dcd490a2e04805608a21085d (diff) |
extcon: usb-gpio: add device binding for platform device
This is needed to handle the GPIO connected USB ID pin found on
Intel Baytrail devices.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Felipe Balbi <balbi@kernel.org>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon/extcon-usb-gpio.c')
-rw-r--r-- | drivers/extcon/extcon-usb-gpio.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c index bad2159d3611..8969606e629b 100644 --- a/drivers/extcon/extcon-usb-gpio.c +++ b/drivers/extcon/extcon-usb-gpio.c | |||
@@ -202,6 +202,12 @@ static const struct of_device_id usb_extcon_dt_match[] = { | |||
202 | }; | 202 | }; |
203 | MODULE_DEVICE_TABLE(of, usb_extcon_dt_match); | 203 | MODULE_DEVICE_TABLE(of, usb_extcon_dt_match); |
204 | 204 | ||
205 | static const struct platform_device_id usb_extcon_platform_ids[] = { | ||
206 | { .name = "extcon-usb-gpio", }, | ||
207 | { /* sentinel */ } | ||
208 | }; | ||
209 | MODULE_DEVICE_TABLE(platform, usb_extcon_platform_ids); | ||
210 | |||
205 | static struct platform_driver usb_extcon_driver = { | 211 | static struct platform_driver usb_extcon_driver = { |
206 | .probe = usb_extcon_probe, | 212 | .probe = usb_extcon_probe, |
207 | .remove = usb_extcon_remove, | 213 | .remove = usb_extcon_remove, |
@@ -210,6 +216,7 @@ static struct platform_driver usb_extcon_driver = { | |||
210 | .pm = &usb_extcon_pm_ops, | 216 | .pm = &usb_extcon_pm_ops, |
211 | .of_match_table = usb_extcon_dt_match, | 217 | .of_match_table = usb_extcon_dt_match, |
212 | }, | 218 | }, |
219 | .id_table = usb_extcon_platform_ids, | ||
213 | }; | 220 | }; |
214 | 221 | ||
215 | module_platform_driver(usb_extcon_driver); | 222 | module_platform_driver(usb_extcon_driver); |