[PATCH RESEND] pinctrl: single: fix potential NULL dereference in pcs_get_function()