diff options
| author | 2026-07-28 09:27:31 +0800 | |
|---|---|---|
| committer | 2026-09-01 11:44:59 +0100 | |
| commit | 86d923a882f48b047b079a293abb6ebca3eaf23f (patch) | |
| tree | 0b4eebce0842466b07b776c760509e108ee4fa0a | |
| parent | clk: scpi: register scpi-cpufreq once and clear on failure (diff) | |
clk: scpi: use PLATFORM_DEVID_NONE for scpi-cpufreq
Replace the magic -1 passed to platform_device_register_simple() with
PLATFORM_DEVID_NONE. This is a readability cleanup only and does not
change behavior.
Signed-off-by: Xixin Liu <liuxixin@kylinos.cn>
Link: https://patch.msgid.link/fb51cfbfbb41.v2.1785200642.git.liuxixin@kylinos.cn
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
| -rw-r--r-- | drivers/clk/clk-scpi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/clk-scpi.c b/drivers/clk/clk-scpi.c index f8182175b483..b2d412ca1d22 100644 --- a/drivers/clk/clk-scpi.c +++ b/drivers/clk/clk-scpi.c @@ -275,7 +275,8 @@ static int scpi_clocks_probe(struct platform_device *pdev) if (cpufreq_dev) continue; cpufreq_dev = platform_device_register_simple("scpi-cpufreq", - -1, NULL, 0); + PLATFORM_DEVID_NONE, + NULL, 0); if (IS_ERR(cpufreq_dev)) { pr_warn("unable to register cpufreq device"); cpufreq_dev = NULL; |
