Loading drivers/spi/spi-txx9.c +2 −5 Original line number Diff line number Diff line Loading @@ -348,7 +348,7 @@ static int txx9spi_probe(struct platform_device *dev) INIT_LIST_HEAD(&c->queue); init_waitqueue_head(&c->waitq); c->clk = clk_get(&dev->dev, "spi-baseclk"); c->clk = devm_clk_get(&dev->dev, "spi-baseclk"); if (IS_ERR(c->clk)) { ret = PTR_ERR(c->clk); c->clk = NULL; Loading Loading @@ -415,10 +415,8 @@ exit_busy: exit: if (c->workqueue) destroy_workqueue(c->workqueue); if (c->clk) { if (c->clk) clk_disable(c->clk); clk_put(c->clk); } spi_master_put(master); return ret; } Loading @@ -430,7 +428,6 @@ static int txx9spi_remove(struct platform_device *dev) destroy_workqueue(c->workqueue); clk_disable(c->clk); clk_put(c->clk); return 0; } Loading Loading
drivers/spi/spi-txx9.c +2 −5 Original line number Diff line number Diff line Loading @@ -348,7 +348,7 @@ static int txx9spi_probe(struct platform_device *dev) INIT_LIST_HEAD(&c->queue); init_waitqueue_head(&c->waitq); c->clk = clk_get(&dev->dev, "spi-baseclk"); c->clk = devm_clk_get(&dev->dev, "spi-baseclk"); if (IS_ERR(c->clk)) { ret = PTR_ERR(c->clk); c->clk = NULL; Loading Loading @@ -415,10 +415,8 @@ exit_busy: exit: if (c->workqueue) destroy_workqueue(c->workqueue); if (c->clk) { if (c->clk) clk_disable(c->clk); clk_put(c->clk); } spi_master_put(master); return ret; } Loading @@ -430,7 +428,6 @@ static int txx9spi_remove(struct platform_device *dev) destroy_workqueue(c->workqueue); clk_disable(c->clk); clk_put(c->clk); return 0; } Loading