extcon: max77693: Return error code of extcon_dev_allocate()
authorKrzysztof Kozlowski <krzk@kernel.org>
Sat, 29 Aug 2020 12:43:54 +0000 (14:43 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 24 Sep 2020 10:20:49 +0000 (19:20 +0900)
commit1f339f3384e85b3610482d4af7e500227311c5f2
tree9a676df71a6c390b1bd3a7784de41912dcdc8de6
parent4e984d83f444901e0187fdb228ce912e2fb7c6ff
extcon: max77693: Return error code of extcon_dev_allocate()

devm_extcon_dev_allocate() can fail of multiple reasons.  The call
returns proper error code on failure so pass it instead of fixed ENOMEM.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-max77693.c