diff options
-rw-r--r-- | drivers/acpi/osl.c | 12 | ||||
-rw-r--r-- | drivers/acpi/video.c | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 147bc1b91b42..3f2bdc812d23 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -1810,6 +1810,16 @@ acpi_status __init acpi_os_initialize(void) | |||
1810 | acpi_os_map_generic_address(&acpi_gbl_FADT.xpm1b_event_block); | 1810 | acpi_os_map_generic_address(&acpi_gbl_FADT.xpm1b_event_block); |
1811 | acpi_os_map_generic_address(&acpi_gbl_FADT.xgpe0_block); | 1811 | acpi_os_map_generic_address(&acpi_gbl_FADT.xgpe0_block); |
1812 | acpi_os_map_generic_address(&acpi_gbl_FADT.xgpe1_block); | 1812 | acpi_os_map_generic_address(&acpi_gbl_FADT.xgpe1_block); |
1813 | if (acpi_gbl_FADT.flags & ACPI_FADT_RESET_REGISTER) { | ||
1814 | /* | ||
1815 | * Use acpi_os_map_generic_address to pre-map the reset | ||
1816 | * register if it's in system memory. | ||
1817 | */ | ||
1818 | int rv; | ||
1819 | |||
1820 | rv = acpi_os_map_generic_address(&acpi_gbl_FADT.reset_register); | ||
1821 | pr_debug(PREFIX "%s: map reset_reg status %d\n", __func__, rv); | ||
1822 | } | ||
1813 | 1823 | ||
1814 | return AE_OK; | 1824 | return AE_OK; |
1815 | } | 1825 | } |
@@ -1838,6 +1848,8 @@ acpi_status acpi_os_terminate(void) | |||
1838 | acpi_os_unmap_generic_address(&acpi_gbl_FADT.xgpe0_block); | 1848 | acpi_os_unmap_generic_address(&acpi_gbl_FADT.xgpe0_block); |
1839 | acpi_os_unmap_generic_address(&acpi_gbl_FADT.xpm1b_event_block); | 1849 | acpi_os_unmap_generic_address(&acpi_gbl_FADT.xpm1b_event_block); |
1840 | acpi_os_unmap_generic_address(&acpi_gbl_FADT.xpm1a_event_block); | 1850 | acpi_os_unmap_generic_address(&acpi_gbl_FADT.xpm1a_event_block); |
1851 | if (acpi_gbl_FADT.flags & ACPI_FADT_RESET_REGISTER) | ||
1852 | acpi_os_unmap_generic_address(&acpi_gbl_FADT.reset_register); | ||
1841 | 1853 | ||
1842 | destroy_workqueue(kacpid_wq); | 1854 | destroy_workqueue(kacpid_wq); |
1843 | destroy_workqueue(kacpi_notify_wq); | 1855 | destroy_workqueue(kacpi_notify_wq); |
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 101fb090dcb9..fb9ffe9adc64 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
@@ -82,7 +82,7 @@ module_param(allow_duplicates, bool, 0644); | |||
82 | * For Windows 8 systems: used to decide if video module | 82 | * For Windows 8 systems: used to decide if video module |
83 | * should skip registering backlight interface of its own. | 83 | * should skip registering backlight interface of its own. |
84 | */ | 84 | */ |
85 | static int use_native_backlight_param = -1; | 85 | static int use_native_backlight_param = 1; |
86 | module_param_named(use_native_backlight, use_native_backlight_param, int, 0444); | 86 | module_param_named(use_native_backlight, use_native_backlight_param, int, 0444); |
87 | static bool use_native_backlight_dmi = false; | 87 | static bool use_native_backlight_dmi = false; |
88 | 88 | ||