dm thin metadata: fix __udivdi3 undefined on 32-bit
[linux/fpc-iii.git] / drivers / cpufreq / hisi-acpu-cpufreq.c
blob026d5b2224de0ad7d890795ab769832feb5fd213
1 /*
2 * Hisilicon Platforms Using ACPU CPUFreq Support
4 * Copyright (c) 2015 Hisilicon Limited.
5 * Copyright (c) 2015 Linaro Limited.
7 * Leo Yan <leo.yan@linaro.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
13 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
14 * kind, whether express or implied; without even the implied warranty
15 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
19 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
21 #include <linux/err.h>
22 #include <linux/init.h>
23 #include <linux/kernel.h>
24 #include <linux/module.h>
25 #include <linux/of.h>
26 #include <linux/platform_device.h>
28 static int __init hisi_acpu_cpufreq_driver_init(void)
30 struct platform_device *pdev;
32 if (!of_machine_is_compatible("hisilicon,hi6220"))
33 return -ENODEV;
35 pdev = platform_device_register_simple("cpufreq-dt", -1, NULL, 0);
36 return PTR_ERR_OR_ZERO(pdev);
38 module_init(hisi_acpu_cpufreq_driver_init);
40 MODULE_AUTHOR("Leo Yan <leo.yan@linaro.org>");
41 MODULE_DESCRIPTION("Hisilicon acpu cpufreq driver");
42 MODULE_LICENSE("GPL v2");