extcon-gpio: code improvement

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
sound/twl4030: fixed sound routing crash (NULL pointer dereference) which prevented using amixer commands

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>