On Sat, Jan 13, 2018 at 6:35 AM, Karthikeyan Ramasubramanian <kramasub@xxxxxxxxxxxxxx> wrote: > This driver manages the Generic Interface (GENI) firmware based Qualcomm > Universal Peripheral (QUP) Wrapper. GENI based QUP is the next generation > programmable module composed of multiple Serial Engines (SE) and supports > a wide range of serial interfaces like UART, SPI, I2C, I3C, etc. This > driver also enables managing the serial interface independent aspects of > Serial Engines. > > Signed-off-by: Karthikeyan Ramasubramanian <kramasub@xxxxxxxxxxxxxx> > Signed-off-by: Sagar Dharia <sdharia@xxxxxxxxxxxxxx> > Signed-off-by: Girish Mahadevan <girishm@xxxxxxxxxxxxxx> > +int geni_se_resources_off(struct geni_se_rsc *rsc) > +{ > + int ret = 0; > + struct geni_se_device *geni_se_dev; > + > + if (unlikely(!rsc || !rsc->wrapper_dev)) > + return -EINVAL; > + > + geni_se_dev = dev_get_drvdata(rsc->wrapper_dev); > + if (unlikely(!geni_se_dev)) > + return -ENODEV; > + > + ret = pinctrl_select_state(rsc->geni_pinctrl, rsc->geni_gpio_sleep); You need to include linux/pinctrl/consumer.h for devm_pinctrl_get I couldn't compile test it w/o it. -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html