Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: x86: Rename clk-lpt to more specific clk-lpss-atom

The LPT stands for Lynxpoint PCH. However the driver is used on a few
Intel Atom SoCs. Rename it to reflect this in a way how another clock
driver, i.e. clk-pmc-atom, is called.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210722193450.35321-1-andriy.shevchenko@linux.intel.com
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Andy Shevchenko and committed by
Stephen Boyd
cf0a9565 e73f0f0e

+12 -10
+4 -2
drivers/acpi/acpi_lpss.c
··· 385 385 386 386 static inline void lpt_register_clock_device(void) 387 387 { 388 - lpss_clk_dev = platform_device_register_simple("clk-lpt", -1, NULL, 0); 388 + lpss_clk_dev = platform_device_register_simple("clk-lpss-atom", 389 + PLATFORM_DEVID_NONE, 390 + NULL, 0); 389 391 } 390 392 391 393 static int register_device_clock(struct acpi_device *adev, ··· 1339 1337 const struct x86_cpu_id *id; 1340 1338 int ret; 1341 1339 1342 - ret = lpt_clk_init(); 1340 + ret = lpss_atom_clk_init(); 1343 1341 if (ret) 1344 1342 return; 1345 1343
+1 -1
drivers/clk/x86/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 obj-$(CONFIG_PMC_ATOM) += clk-pmc-atom.o 3 3 obj-$(CONFIG_X86_AMD_PLATFORM_DEVICE) += clk-fch.o 4 - clk-x86-lpss-objs := clk-lpt.o 4 + clk-x86-lpss-y := clk-lpss-atom.o 5 5 obj-$(CONFIG_X86_INTEL_LPSS) += clk-x86-lpss.o 6 6 obj-$(CONFIG_CLK_LGM_CGU) += clk-cgu.o clk-cgu-pll.o clk-lgm.o
+6 -6
drivers/clk/x86/clk-lpt.c drivers/clk/x86/clk-lpss-atom.c
··· 13 13 #include <linux/platform_data/x86/clk-lpss.h> 14 14 #include <linux/platform_device.h> 15 15 16 - static int lpt_clk_probe(struct platform_device *pdev) 16 + static int lpss_atom_clk_probe(struct platform_device *pdev) 17 17 { 18 18 struct lpss_clk_data *drvdata; 19 19 struct clk *clk; ··· 34 34 return 0; 35 35 } 36 36 37 - static struct platform_driver lpt_clk_driver = { 37 + static struct platform_driver lpss_atom_clk_driver = { 38 38 .driver = { 39 - .name = "clk-lpt", 39 + .name = "clk-lpss-atom", 40 40 }, 41 - .probe = lpt_clk_probe, 41 + .probe = lpss_atom_clk_probe, 42 42 }; 43 43 44 - int __init lpt_clk_init(void) 44 + int __init lpss_atom_clk_init(void) 45 45 { 46 - return platform_driver_register(&lpt_clk_driver); 46 + return platform_driver_register(&lpss_atom_clk_driver); 47 47 }
+1 -1
include/linux/platform_data/x86/clk-lpss.h
··· 15 15 struct clk *clk; 16 16 }; 17 17 18 - extern int lpt_clk_init(void); 18 + extern int lpss_atom_clk_init(void); 19 19 20 20 #endif /* __CLK_LPSS_H */