diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2014-04-21 20:44:53 +0900 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2014-04-29 09:52:12 +0900 |
commit | 3f79a3fb5f41e8f2229e5bf8aa725eaa79686f14 (patch) | |
tree | c5fc198cb1abff8c743b24b22979e97d5b9164a0 /include/linux/mfd/palmas.h | |
parent | 60cd62d4f7d681a99eccf49941229ccf3a0069cf (diff) | |
download | lwn-3f79a3fb5f41e8f2229e5bf8aa725eaa79686f14.tar.gz lwn-3f79a3fb5f41e8f2229e5bf8aa725eaa79686f14.zip |
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/palmas.h')
-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 { struct palmas *palmas; struct device *dev; - struct extcon_dev edev; + struct extcon_dev *edev; int id_otg_irq; int id_irq; |