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) {
> +
;
>
> 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) {
> + dev_dbg(>dev, "Freeing
(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),
gt;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),
},
};
--
2.7.4
4 matches
Mail list logo