|
@@ -425,7 +425,7 @@ exit:
|
|
|
|
|
|
|
|
static int txx9spi_remove(struct platform_device *dev)
|
|
static int txx9spi_remove(struct platform_device *dev)
|
|
|
{
|
|
{
|
|
|
- struct spi_master *master = spi_master_get(platform_get_drvdata(dev));
|
|
|
|
|
|
|
+ struct spi_master *master = platform_get_drvdata(dev);
|
|
|
struct txx9spi *c = spi_master_get_devdata(master);
|
|
struct txx9spi *c = spi_master_get_devdata(master);
|
|
|
|
|
|
|
|
destroy_workqueue(c->workqueue);
|
|
destroy_workqueue(c->workqueue);
|