diff options
| -rw-r--r-- | drivers/acpi/Kconfig | 2 | ||||
| -rw-r--r-- | drivers/acpi/acpi_i2c.c | 2 | ||||
| -rw-r--r-- | drivers/acpi/processor_idle.c | 13 | ||||
| -rw-r--r-- | drivers/i2c/busses/i2c-designware-platdrv.c | 1 | ||||
| -rw-r--r-- | drivers/spi/spi-pxa2xx.c | 1 | ||||
| -rw-r--r-- | drivers/spi/spi.c | 2 |
6 files changed, 10 insertions, 11 deletions
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index 92ed9692c47e..4bf68c8d4797 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig | |||
| @@ -396,7 +396,7 @@ config ACPI_CUSTOM_METHOD | |||
| 396 | 396 | ||
| 397 | config ACPI_BGRT | 397 | config ACPI_BGRT |
| 398 | bool "Boottime Graphics Resource Table support" | 398 | bool "Boottime Graphics Resource Table support" |
| 399 | depends on EFI | 399 | depends on EFI && X86 |
| 400 | help | 400 | help |
| 401 | This driver adds support for exposing the ACPI Boottime Graphics | 401 | This driver adds support for exposing the ACPI Boottime Graphics |
| 402 | Resource Table, which allows the operating system to obtain | 402 | Resource Table, which allows the operating system to obtain |
diff --git a/drivers/acpi/acpi_i2c.c b/drivers/acpi/acpi_i2c.c index 82045e3f5cac..a82c7626aa9b 100644 --- a/drivers/acpi/acpi_i2c.c +++ b/drivers/acpi/acpi_i2c.c | |||
| @@ -90,7 +90,7 @@ void acpi_i2c_register_devices(struct i2c_adapter *adapter) | |||
| 90 | acpi_handle handle; | 90 | acpi_handle handle; |
| 91 | acpi_status status; | 91 | acpi_status status; |
| 92 | 92 | ||
| 93 | handle = ACPI_HANDLE(&adapter->dev); | 93 | handle = ACPI_HANDLE(adapter->dev.parent); |
| 94 | if (!handle) | 94 | if (!handle) |
| 95 | return; | 95 | return; |
| 96 | 96 | ||
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index fc95308e9a11..ee255c60bdac 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c | |||
| @@ -66,7 +66,8 @@ module_param(latency_factor, uint, 0644); | |||
| 66 | 66 | ||
| 67 | static DEFINE_PER_CPU(struct cpuidle_device *, acpi_cpuidle_device); | 67 | static DEFINE_PER_CPU(struct cpuidle_device *, acpi_cpuidle_device); |
| 68 | 68 | ||
| 69 | static struct acpi_processor_cx *acpi_cstate[CPUIDLE_STATE_MAX]; | 69 | static DEFINE_PER_CPU(struct acpi_processor_cx * [CPUIDLE_STATE_MAX], |
| 70 | acpi_cstate); | ||
| 70 | 71 | ||
| 71 | static int disabled_by_idle_boot_param(void) | 72 | static int disabled_by_idle_boot_param(void) |
| 72 | { | 73 | { |
| @@ -722,7 +723,7 @@ static int acpi_idle_enter_c1(struct cpuidle_device *dev, | |||
| 722 | struct cpuidle_driver *drv, int index) | 723 | struct cpuidle_driver *drv, int index) |
| 723 | { | 724 | { |
| 724 | struct acpi_processor *pr; | 725 | struct acpi_processor *pr; |
| 725 | struct acpi_processor_cx *cx = acpi_cstate[index]; | 726 | struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); |
| 726 | 727 | ||
| 727 | pr = __this_cpu_read(processors); | 728 | pr = __this_cpu_read(processors); |
| 728 | 729 | ||
| @@ -745,7 +746,7 @@ static int acpi_idle_enter_c1(struct cpuidle_device *dev, | |||
| 745 | */ | 746 | */ |
| 746 | static int acpi_idle_play_dead(struct cpuidle_device *dev, int index) | 747 | static int acpi_idle_play_dead(struct cpuidle_device *dev, int index) |
| 747 | { | 748 | { |
| 748 | struct acpi_processor_cx *cx = acpi_cstate[index]; | 749 | struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); |
| 749 | 750 | ||
| 750 | ACPI_FLUSH_CPU_CACHE(); | 751 | ACPI_FLUSH_CPU_CACHE(); |
| 751 | 752 | ||
| @@ -775,7 +776,7 @@ static int acpi_idle_enter_simple(struct cpuidle_device *dev, | |||
| 775 | struct cpuidle_driver *drv, int index) | 776 | struct cpuidle_driver *drv, int index) |
| 776 | { | 777 | { |
| 777 | struct acpi_processor *pr; | 778 | struct acpi_processor *pr; |
| 778 | struct acpi_processor_cx *cx = acpi_cstate[index]; | 779 | struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); |
| 779 | 780 | ||
| 780 | pr = __this_cpu_read(processors); | 781 | pr = __this_cpu_read(processors); |
| 781 | 782 | ||
| @@ -833,7 +834,7 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev, | |||
| 833 | struct cpuidle_driver *drv, int index) | 834 | struct cpuidle_driver *drv, int index) |
| 834 | { | 835 | { |
| 835 | struct acpi_processor *pr; | 836 | struct acpi_processor *pr; |
| 836 | struct acpi_processor_cx *cx = acpi_cstate[index]; | 837 | struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); |
| 837 | 838 | ||
| 838 | pr = __this_cpu_read(processors); | 839 | pr = __this_cpu_read(processors); |
| 839 | 840 | ||
| @@ -960,7 +961,7 @@ static int acpi_processor_setup_cpuidle_cx(struct acpi_processor *pr, | |||
| 960 | !(acpi_gbl_FADT.flags & ACPI_FADT_C2_MP_SUPPORTED)) | 961 | !(acpi_gbl_FADT.flags & ACPI_FADT_C2_MP_SUPPORTED)) |
| 961 | continue; | 962 | continue; |
| 962 | #endif | 963 | #endif |
| 963 | acpi_cstate[count] = cx; | 964 | per_cpu(acpi_cstate[count], dev->cpu) = cx; |
| 964 | 965 | ||
| 965 | count++; | 966 | count++; |
| 966 | if (count == CPUIDLE_STATE_MAX) | 967 | if (count == CPUIDLE_STATE_MAX) |
diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c index 0ceb6e1b0f65..e3085c487ace 100644 --- a/drivers/i2c/busses/i2c-designware-platdrv.c +++ b/drivers/i2c/busses/i2c-designware-platdrv.c | |||
| @@ -182,7 +182,6 @@ static int dw_i2c_probe(struct platform_device *pdev) | |||
| 182 | adap->algo = &i2c_dw_algo; | 182 | adap->algo = &i2c_dw_algo; |
| 183 | adap->dev.parent = &pdev->dev; | 183 | adap->dev.parent = &pdev->dev; |
| 184 | adap->dev.of_node = pdev->dev.of_node; | 184 | adap->dev.of_node = pdev->dev.of_node; |
| 185 | ACPI_HANDLE_SET(&adap->dev, ACPI_HANDLE(&pdev->dev)); | ||
| 186 | 185 | ||
| 187 | r = i2c_add_numbered_adapter(adap); | 186 | r = i2c_add_numbered_adapter(adap); |
| 188 | if (r) { | 187 | if (r) { |
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 90b27a3508a6..810413883c79 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c | |||
| @@ -1168,7 +1168,6 @@ static int pxa2xx_spi_probe(struct platform_device *pdev) | |||
| 1168 | 1168 | ||
| 1169 | master->dev.parent = &pdev->dev; | 1169 | master->dev.parent = &pdev->dev; |
| 1170 | master->dev.of_node = pdev->dev.of_node; | 1170 | master->dev.of_node = pdev->dev.of_node; |
| 1171 | ACPI_HANDLE_SET(&master->dev, ACPI_HANDLE(&pdev->dev)); | ||
| 1172 | /* the spi->mode bits understood by this driver: */ | 1171 | /* the spi->mode bits understood by this driver: */ |
| 1173 | master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; | 1172 | master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; |
| 1174 | 1173 | ||
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index f996c600eb8c..5e073d897edb 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c | |||
| @@ -984,7 +984,7 @@ static void acpi_register_spi_devices(struct spi_master *master) | |||
| 984 | acpi_status status; | 984 | acpi_status status; |
| 985 | acpi_handle handle; | 985 | acpi_handle handle; |
| 986 | 986 | ||
| 987 | handle = ACPI_HANDLE(&master->dev); | 987 | handle = ACPI_HANDLE(master->dev.parent); |
| 988 | if (!handle) | 988 | if (!handle) |
| 989 | return; | 989 | return; |
| 990 | 990 | ||
