]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - drivers/cpufreq/cpufreq-dt-platdev.c
ARM: exynos: exynos-cpufreq platform device isn't supported anymore
[mirror_ubuntu-zesty-kernel.git] / drivers / cpufreq / cpufreq-dt-platdev.c
CommitLineData
f56aad1d
VK
1/*
2 * Copyright (C) 2016 Linaro.
3 * Viresh Kumar <viresh.kumar@linaro.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 */
9
10#include <linux/err.h>
11#include <linux/of.h>
12#include <linux/platform_device.h>
13
14static const struct of_device_id machines[] = {
15};
16
17static int __init cpufreq_dt_platdev_init(void)
18{
19 struct device_node *np = of_find_node_by_path("/");
20
21 if (!np)
22 return -ENODEV;
23
24 if (!of_match_node(machines, np))
25 return -ENODEV;
26
27 of_node_put(of_root);
28
29 return PTR_ERR_OR_ZERO(platform_device_register_simple("cpufreq-dt", -1,
30 NULL, 0));
31}
32device_initcall(cpufreq_dt_platdev_init);