ACPI / watchdog: Fix init failure with overlapping register regions
authorRyan Kennedy <ryan5544@gmail.com>
Sat, 15 Jul 2017 21:48:18 +0000 (17:48 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 26 Jul 2017 00:09:41 +0000 (02:09 +0200)
commit31e86cb99a3af0653f0e317fdd9c05b530c70af8
tree2ddfc48c0d39f46a6618d6f5108000a265bfa633
parent520eccdfe187591a51ea9ab4c1a024ae4d0f68d9
ACPI / watchdog: Fix init failure with overlapping register regions

Partially overlapping regions cause platform device creation
to fail. The latter of two overlapping resources will fail to be
reserved. Fix this by merging overlapping resource ranges while
enumerating WDAT table entries.

Signed-off-by: Ryan Kennedy <ryan5544@gmail.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_watchdog.c