clk: keystone: Convert to platform remove callback returning void
[sfrench/cifs-2.6.git] / drivers / clk / keystone / sci-clk.c
index d4b4e74e22da60f72cd6a5ad141fe54a762c4fe6..910ecd58c4ca2e7eae7496adf81faca55e97600a 100644 (file)
@@ -689,16 +689,14 @@ static int ti_sci_clk_probe(struct platform_device *pdev)
  * via common clock framework. Any memory allocated for the device will
  * be free'd silently via the devm framework. Returns 0 always.
  */
-static int ti_sci_clk_remove(struct platform_device *pdev)
+static void ti_sci_clk_remove(struct platform_device *pdev)
 {
        of_clk_del_provider(pdev->dev.of_node);
-
-       return 0;
 }
 
 static struct platform_driver ti_sci_clk_driver = {
        .probe = ti_sci_clk_probe,
-       .remove = ti_sci_clk_remove,
+       .remove_new = ti_sci_clk_remove,
        .driver = {
                .name = "ti-sci-clk",
                .of_match_table = of_match_ptr(ti_sci_clk_of_match),