Skip to content

Commit cf0a956

Browse files
andy-shevbebarino
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Rafael J. Wysocki <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent e73f0f0 commit cf0a956

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

drivers/acpi/acpi_lpss.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@ static struct platform_device *lpss_clk_dev;
385385

386386
static inline void lpt_register_clock_device(void)
387387
{
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);
389391
}
390392

391393
static int register_device_clock(struct acpi_device *adev,
@@ -1337,7 +1339,7 @@ void __init acpi_lpss_init(void)
13371339
const struct x86_cpu_id *id;
13381340
int ret;
13391341

1340-
ret = lpt_clk_init();
1342+
ret = lpss_atom_clk_init();
13411343
if (ret)
13421344
return;
13431345

drivers/clk/x86/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
obj-$(CONFIG_PMC_ATOM) += clk-pmc-atom.o
33
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
55
obj-$(CONFIG_X86_INTEL_LPSS) += clk-x86-lpss.o
66
obj-$(CONFIG_CLK_LGM_CGU) += clk-cgu.o clk-cgu-pll.o clk-lgm.o

drivers/clk/x86/clk-lpt.c renamed to drivers/clk/x86/clk-lpss-atom.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <linux/platform_data/x86/clk-lpss.h>
1414
#include <linux/platform_device.h>
1515

16-
static int lpt_clk_probe(struct platform_device *pdev)
16+
static int lpss_atom_clk_probe(struct platform_device *pdev)
1717
{
1818
struct lpss_clk_data *drvdata;
1919
struct clk *clk;
@@ -34,14 +34,14 @@ static int lpt_clk_probe(struct platform_device *pdev)
3434
return 0;
3535
}
3636

37-
static struct platform_driver lpt_clk_driver = {
37+
static struct platform_driver lpss_atom_clk_driver = {
3838
.driver = {
39-
.name = "clk-lpt",
39+
.name = "clk-lpss-atom",
4040
},
41-
.probe = lpt_clk_probe,
41+
.probe = lpss_atom_clk_probe,
4242
};
4343

44-
int __init lpt_clk_init(void)
44+
int __init lpss_atom_clk_init(void)
4545
{
46-
return platform_driver_register(&lpt_clk_driver);
46+
return platform_driver_register(&lpss_atom_clk_driver);
4747
}

include/linux/platform_data/x86/clk-lpss.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ struct lpss_clk_data {
1515
struct clk *clk;
1616
};
1717

18-
extern int lpt_clk_init(void);
18+
extern int lpss_atom_clk_init(void);
1919

2020
#endif /* __CLK_LPSS_H */

0 commit comments

Comments
 (0)