diff options
| author | Chanwoo Choi <cw00.choi@samsung.com> | 2014-04-21 07:44:53 -0400 |
|---|---|---|
| committer | Chanwoo Choi <cw00.choi@samsung.com> | 2014-04-28 20:52:12 -0400 |
| commit | 3f79a3fb5f41e8f2229e5bf8aa725eaa79686f14 (patch) | |
| tree | c5fc198cb1abff8c743b24b22979e97d5b9164a0 /include/linux/mfd | |
| parent | 60cd62d4f7d681a99eccf49941229ccf3a0069cf (diff) | |
extcon: palmas: Use devm_extcon_dev_allocate for extcon_dev
This patch use devm_extcon_dev_allocate() to simplify the memory control
of extcon device.
Cc: Graeme Gregory <gg@slimlogic.co.uk>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Felipe Balbi <balbi@ti.com>
Tested-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/palmas.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h index 9974e387e483..b8f87b704409 100644 --- a/include/linux/mfd/palmas.h +++ b/include/linux/mfd/palmas.h | |||
| @@ -415,7 +415,7 @@ struct palmas_usb { | |||
| 415 | struct palmas *palmas; | 415 | struct palmas *palmas; |
| 416 | struct device *dev; | 416 | struct device *dev; |
| 417 | 417 | ||
| 418 | struct extcon_dev edev; | 418 | struct extcon_dev *edev; |
| 419 | 419 | ||
| 420 | int id_otg_irq; | 420 | int id_otg_irq; |
| 421 | int id_irq; | 421 | int id_irq; |
