TEGRA: Fix bindings for cpufreq and coretemp drivers,
it was broken in r306477. Correct a description for coretemp driver.
This commit is contained in:
parent
a27852480c
commit
a7b380d7d6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306551
@ -179,9 +179,9 @@ static void
|
||||
tegra124_coretemp_identify(driver_t *driver, device_t parent)
|
||||
{
|
||||
|
||||
if (device_find_child(parent, "tegra124_coretemp", -1) != NULL)
|
||||
if (device_find_child(parent, "coretemp", -1) != NULL)
|
||||
return;
|
||||
if (BUS_ADD_CHILD(parent, 0, "tegra124_coretemp", -1) == NULL)
|
||||
if (BUS_ADD_CHILD(parent, 0, "coretemp", -1) == NULL)
|
||||
device_printf(parent, "add child failed\n");
|
||||
}
|
||||
|
||||
@ -189,7 +189,7 @@ static int
|
||||
tegra124_coretemp_probe(device_t dev)
|
||||
{
|
||||
|
||||
device_set_desc(dev, "CPU Frequency Control");
|
||||
device_set_desc(dev, "CPU Thermal Sensor");
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
@ -476,6 +476,8 @@ static void
|
||||
tegra124_cpufreq_identify(driver_t *driver, device_t parent)
|
||||
{
|
||||
|
||||
if (device_get_unit(parent) != 0)
|
||||
return;
|
||||
if (device_find_child(parent, "tegra124_cpufreq", -1) != NULL)
|
||||
return;
|
||||
if (BUS_ADD_CHILD(parent, 0, "tegra124_cpufreq", -1) == NULL)
|
||||
@ -486,8 +488,6 @@ static int
|
||||
tegra124_cpufreq_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (device_get_unit(dev) != 0)
|
||||
return (ENXIO);
|
||||
device_set_desc(dev, "CPU Frequency Control");
|
||||
|
||||
return (0);
|
||||
@ -588,7 +588,7 @@ static device_method_t tegra124_cpufreq_methods[] = {
|
||||
};
|
||||
|
||||
static devclass_t tegra124_cpufreq_devclass;
|
||||
static DEFINE_CLASS_0(cpufreq, tegra124_cpufreq_driver,
|
||||
static DEFINE_CLASS_0(tegra124_cpufreq, tegra124_cpufreq_driver,
|
||||
tegra124_cpufreq_methods, sizeof(struct tegra124_cpufreq_softc));
|
||||
DRIVER_MODULE(tegra124_cpufreq, cpu, tegra124_cpufreq_driver,
|
||||
tegra124_cpufreq_devclass, NULL, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user