Re: [PATCH 1/3] usb: max3421-hcd: Add devicetree support to the driver

2017-05-31 Thread Rob Herring
qsave(_hcd->lock, flags); > > kthread_stop(max3421_hcd->spi_thread); > @@ -1923,8 +1997,19 @@ max3421_remove(struct spi_device *spi) > > spin_unlock_irqrestore(_hcd->lock, flags); > > +#if defined(CONFIG_OF) > + if (spi->dev.platform_data) { > +

[PATCH 1/3] usb: max3421-hcd: Add devicetree support to the driver

2017-05-26 Thread Alexander Amelkin
(spi->irq, hcd); + usb_remove_hcd(hcd); + + usb_put_hcd(hcd); return 0; } @@ -1934,6 +2019,7 @@ static struct spi_driver max3421_driver = { .remove = max3421_remove, .driver = { .name = "max3421-hcd", + .of_match_table = of_match_ptr(max3421_dt_ids),