Merge commit 'origin/master' into next
Manual merge of: drivers/char/hvc_console.c drivers/char/hvc_console.h
このコミットが含まれているのは:
@@ -322,8 +322,8 @@ static int __init adb_init(void)
|
||||
adb_controller = NULL;
|
||||
} else {
|
||||
#ifdef CONFIG_PPC
|
||||
if (machine_is_compatible("AAPL,PowerBook1998") ||
|
||||
machine_is_compatible("PowerBook1,1"))
|
||||
if (of_machine_is_compatible("AAPL,PowerBook1998") ||
|
||||
of_machine_is_compatible("PowerBook1,1"))
|
||||
sleepy_trackpad = 1;
|
||||
#endif /* CONFIG_PPC */
|
||||
|
||||
|
@@ -1899,7 +1899,7 @@ static int create_control_loops(void)
|
||||
*/
|
||||
if (rackmac)
|
||||
cpu_pid_type = CPU_PID_TYPE_RACKMAC;
|
||||
else if (machine_is_compatible("PowerMac7,3")
|
||||
else if (of_machine_is_compatible("PowerMac7,3")
|
||||
&& (cpu_count > 1)
|
||||
&& fcu_fans[CPUA_PUMP_RPM_INDEX].id != FCU_FAN_ABSENT_ID
|
||||
&& fcu_fans[CPUB_PUMP_RPM_INDEX].id != FCU_FAN_ABSENT_ID) {
|
||||
@@ -2234,10 +2234,10 @@ static int __init therm_pm72_init(void)
|
||||
{
|
||||
struct device_node *np;
|
||||
|
||||
rackmac = machine_is_compatible("RackMac3,1");
|
||||
rackmac = of_machine_is_compatible("RackMac3,1");
|
||||
|
||||
if (!machine_is_compatible("PowerMac7,2") &&
|
||||
!machine_is_compatible("PowerMac7,3") &&
|
||||
if (!of_machine_is_compatible("PowerMac7,2") &&
|
||||
!of_machine_is_compatible("PowerMac7,3") &&
|
||||
!rackmac)
|
||||
return -ENODEV;
|
||||
|
||||
|
@@ -490,7 +490,7 @@ g4fan_init( void )
|
||||
info = of_get_property(np, "thermal-info", NULL);
|
||||
of_node_put(np);
|
||||
|
||||
if( !info || !machine_is_compatible("PowerMac3,6") )
|
||||
if( !info || !of_machine_is_compatible("PowerMac3,6") )
|
||||
return -ENODEV;
|
||||
|
||||
if( info->id != 3 ) {
|
||||
|
@@ -150,13 +150,13 @@ void __init pmu_backlight_init()
|
||||
|
||||
/* Special case for the old PowerBook since I can't test on it */
|
||||
autosave =
|
||||
machine_is_compatible("AAPL,3400/2400") ||
|
||||
machine_is_compatible("AAPL,3500");
|
||||
of_machine_is_compatible("AAPL,3400/2400") ||
|
||||
of_machine_is_compatible("AAPL,3500");
|
||||
|
||||
if (!autosave &&
|
||||
!pmac_has_backlight_type("pmu") &&
|
||||
!machine_is_compatible("AAPL,PowerBook1998") &&
|
||||
!machine_is_compatible("PowerBook1,1"))
|
||||
!of_machine_is_compatible("AAPL,PowerBook1998") &&
|
||||
!of_machine_is_compatible("PowerBook1,1"))
|
||||
return;
|
||||
|
||||
snprintf(name, sizeof(name), "pmubl");
|
||||
|
@@ -463,8 +463,8 @@ static int __init via_pmu_dev_init(void)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PPC32
|
||||
if (machine_is_compatible("AAPL,3400/2400") ||
|
||||
machine_is_compatible("AAPL,3500")) {
|
||||
if (of_machine_is_compatible("AAPL,3400/2400") ||
|
||||
of_machine_is_compatible("AAPL,3500")) {
|
||||
int mb = pmac_call_feature(PMAC_FTR_GET_MB_INFO,
|
||||
NULL, PMAC_MB_INFO_MODEL, 0);
|
||||
pmu_battery_count = 1;
|
||||
@@ -472,8 +472,8 @@ static int __init via_pmu_dev_init(void)
|
||||
pmu_batteries[0].flags |= PMU_BATT_TYPE_COMET;
|
||||
else
|
||||
pmu_batteries[0].flags |= PMU_BATT_TYPE_HOOPER;
|
||||
} else if (machine_is_compatible("AAPL,PowerBook1998") ||
|
||||
machine_is_compatible("PowerBook1,1")) {
|
||||
} else if (of_machine_is_compatible("AAPL,PowerBook1998") ||
|
||||
of_machine_is_compatible("PowerBook1,1")) {
|
||||
pmu_battery_count = 2;
|
||||
pmu_batteries[0].flags |= PMU_BATT_TYPE_SMART;
|
||||
pmu_batteries[1].flags |= PMU_BATT_TYPE_SMART;
|
||||
|
@@ -468,9 +468,9 @@ static int __init windfarm_core_init(void)
|
||||
DBG("wf: core loaded\n");
|
||||
|
||||
/* Don't register on old machines that use therm_pm72 for now */
|
||||
if (machine_is_compatible("PowerMac7,2") ||
|
||||
machine_is_compatible("PowerMac7,3") ||
|
||||
machine_is_compatible("RackMac3,1"))
|
||||
if (of_machine_is_compatible("PowerMac7,2") ||
|
||||
of_machine_is_compatible("PowerMac7,3") ||
|
||||
of_machine_is_compatible("RackMac3,1"))
|
||||
return -ENODEV;
|
||||
platform_device_register(&wf_platform_device);
|
||||
return 0;
|
||||
|
@@ -76,9 +76,9 @@ static int __init wf_cpufreq_clamp_init(void)
|
||||
struct wf_control *clamp;
|
||||
|
||||
/* Don't register on old machines that use therm_pm72 for now */
|
||||
if (machine_is_compatible("PowerMac7,2") ||
|
||||
machine_is_compatible("PowerMac7,3") ||
|
||||
machine_is_compatible("RackMac3,1"))
|
||||
if (of_machine_is_compatible("PowerMac7,2") ||
|
||||
of_machine_is_compatible("PowerMac7,3") ||
|
||||
of_machine_is_compatible("RackMac3,1"))
|
||||
return -ENODEV;
|
||||
|
||||
clamp = kmalloc(sizeof(struct wf_control), GFP_KERNEL);
|
||||
|
@@ -239,9 +239,9 @@ static struct i2c_driver wf_lm75_driver = {
|
||||
static int __init wf_lm75_sensor_init(void)
|
||||
{
|
||||
/* Don't register on old machines that use therm_pm72 for now */
|
||||
if (machine_is_compatible("PowerMac7,2") ||
|
||||
machine_is_compatible("PowerMac7,3") ||
|
||||
machine_is_compatible("RackMac3,1"))
|
||||
if (of_machine_is_compatible("PowerMac7,2") ||
|
||||
of_machine_is_compatible("PowerMac7,3") ||
|
||||
of_machine_is_compatible("RackMac3,1"))
|
||||
return -ENODEV;
|
||||
return i2c_add_driver(&wf_lm75_driver);
|
||||
}
|
||||
|
@@ -188,9 +188,9 @@ static struct i2c_driver wf_max6690_driver = {
|
||||
static int __init wf_max6690_sensor_init(void)
|
||||
{
|
||||
/* Don't register on old machines that use therm_pm72 for now */
|
||||
if (machine_is_compatible("PowerMac7,2") ||
|
||||
machine_is_compatible("PowerMac7,3") ||
|
||||
machine_is_compatible("RackMac3,1"))
|
||||
if (of_machine_is_compatible("PowerMac7,2") ||
|
||||
of_machine_is_compatible("PowerMac7,3") ||
|
||||
of_machine_is_compatible("RackMac3,1"))
|
||||
return -ENODEV;
|
||||
return i2c_add_driver(&wf_max6690_driver);
|
||||
}
|
||||
|
@@ -676,7 +676,7 @@ static int __init wf_pm112_init(void)
|
||||
{
|
||||
struct device_node *cpu;
|
||||
|
||||
if (!machine_is_compatible("PowerMac11,2"))
|
||||
if (!of_machine_is_compatible("PowerMac11,2"))
|
||||
return -ENODEV;
|
||||
|
||||
/* Count the number of CPU cores */
|
||||
|
@@ -1008,7 +1008,7 @@ static int __init pm121_init(void)
|
||||
{
|
||||
int rc = -ENODEV;
|
||||
|
||||
if (machine_is_compatible("PowerMac12,1"))
|
||||
if (of_machine_is_compatible("PowerMac12,1"))
|
||||
rc = pm121_init_pm();
|
||||
|
||||
if (rc == 0) {
|
||||
|
@@ -779,8 +779,8 @@ static int __init wf_smu_init(void)
|
||||
{
|
||||
int rc = -ENODEV;
|
||||
|
||||
if (machine_is_compatible("PowerMac8,1") ||
|
||||
machine_is_compatible("PowerMac8,2"))
|
||||
if (of_machine_is_compatible("PowerMac8,1") ||
|
||||
of_machine_is_compatible("PowerMac8,2"))
|
||||
rc = wf_init_pm();
|
||||
|
||||
if (rc == 0) {
|
||||
|
@@ -711,7 +711,7 @@ static int __init wf_smu_init(void)
|
||||
{
|
||||
int rc = -ENODEV;
|
||||
|
||||
if (machine_is_compatible("PowerMac9,1"))
|
||||
if (of_machine_is_compatible("PowerMac9,1"))
|
||||
rc = wf_init_pm();
|
||||
|
||||
if (rc == 0) {
|
||||
|
@@ -363,9 +363,9 @@ smu_cpu_power_create(struct wf_sensor *volts, struct wf_sensor *amps)
|
||||
* I yet have to figure out what's up with 8,2 and will have to
|
||||
* adjust for later, unless we can 100% trust the SDB partition...
|
||||
*/
|
||||
if ((machine_is_compatible("PowerMac8,1") ||
|
||||
machine_is_compatible("PowerMac8,2") ||
|
||||
machine_is_compatible("PowerMac9,1")) &&
|
||||
if ((of_machine_is_compatible("PowerMac8,1") ||
|
||||
of_machine_is_compatible("PowerMac8,2") ||
|
||||
of_machine_is_compatible("PowerMac9,1")) &&
|
||||
cpuvcp_version >= 2) {
|
||||
pow->quadratic = 1;
|
||||
DBG("windfarm: CPU Power using quadratic transform\n");
|
||||
|
新しいイシューから参照
ユーザーをブロックする