pinctrl: use ERR_CAST instead of ERR_PTR/PTR_ERR