Merge tag 'rtc-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux
[linux-block.git] / drivers / clk / clk-axm5516.c
index 07e80fe8c310c9e75b18515e50240e06ff51867f..1afcfdf2e6f99cd5dbf8fade10011f8606df66c5 100644 (file)
@@ -569,18 +569,11 @@ static int axmclk_probe(struct platform_device *pdev)
                        return ret;
        }
 
-       return of_clk_add_hw_provider(dev->of_node, of_clk_axmclk_get, NULL);
-}
-
-static int axmclk_remove(struct platform_device *pdev)
-{
-       of_clk_del_provider(pdev->dev.of_node);
-       return 0;
+       return devm_of_clk_add_hw_provider(dev, of_clk_axmclk_get, NULL);
 }
 
 static struct platform_driver axmclk_driver = {
        .probe          = axmclk_probe,
-       .remove         = axmclk_remove,
        .driver         = {
                .name   = "clk-axm5516",
                .of_match_table = axmclk_match_table,