2 * Intel Low Power Subsystem clocks.
4 * Copyright (C) 2013, Intel Corporation
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #include <linux/clk-provider.h>
14 #include <linux/err.h>
15 #include <linux/module.h>
16 #include <linux/platform_data/clk-lpss.h>
17 #include <linux/platform_device.h>
19 static int lpt_clk_probe(struct platform_device *pdev)
21 struct lpss_clk_data *drvdata;
24 drvdata = devm_kzalloc(&pdev->dev, sizeof(*drvdata), GFP_KERNEL);
28 /* LPSS free running clock */
29 drvdata->name = "lpss_clk";
30 clk = clk_register_fixed_rate(&pdev->dev, drvdata->name, NULL,
36 platform_set_drvdata(pdev, drvdata);
40 static struct platform_driver lpt_clk_driver = {
44 .probe = lpt_clk_probe,
47 int __init lpt_clk_init(void)
49 return platform_driver_register(&lpt_clk_driver);