Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64...
[linux-2.6-microblaze.git] / drivers / perf / arm_smmuv3_pmu.c
index 9e5d7fa..719aa95 100644 (file)
@@ -965,14 +965,12 @@ out_unregister:
        return err;
 }
 
-static int smmu_pmu_remove(struct platform_device *pdev)
+static void smmu_pmu_remove(struct platform_device *pdev)
 {
        struct smmu_pmu *smmu_pmu = platform_get_drvdata(pdev);
 
        perf_pmu_unregister(&smmu_pmu->pmu);
        cpuhp_state_remove_instance_nocalls(cpuhp_state_num, &smmu_pmu->node);
-
-       return 0;
 }
 
 static void smmu_pmu_shutdown(struct platform_device *pdev)
@@ -997,7 +995,7 @@ static struct platform_driver smmu_pmu_driver = {
                .suppress_bind_attrs = true,
        },
        .probe = smmu_pmu_probe,
-       .remove = smmu_pmu_remove,
+       .remove_new = smmu_pmu_remove,
        .shutdown = smmu_pmu_shutdown,
 };