]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf: arm-ni: Fix missing platform_set_drvdata()
authorHongbo Yao <andy.xu@hj-micro.com>
Tue, 1 Apr 2025 05:42:48 +0000 (13:42 +0800)
committerWill Deacon <will@kernel.org>
Thu, 17 Apr 2025 13:27:34 +0000 (14:27 +0100)
commitfc5106088d6db75df61308ef6de314d1f7959646
tree2d61ce0a355759fbea42f5e05543d3f0f08741d8
parent7f57afde6a44d9e044885e1125034edd4fda02e8
perf: arm-ni: Fix missing platform_set_drvdata()

Add missing platform_set_drvdata in arm_ni_probe(), otherwise
calling platform_get_drvdata() in remove returns NULL.

Fixes: 4d5a7680f2b4 ("perf: Add driver for Arm NI-700 interconnect PMU")
Signed-off-by: Hongbo Yao <andy.xu@hj-micro.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/20250401054248.3985814-1-andy.xu@hj-micro.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm-ni.c