ACPI / scan: Allow platform device creation without any IO resources
authorKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Mon, 22 Jul 2013 23:51:20 +0000 (16:51 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 6 Aug 2013 12:12:21 +0000 (14:12 +0200)
commit62eb4b07f0803d0426eb695bfe6755dd6a2cafb2
treefa0a80fdfa1b60d09df854011b1096eb0306d3c8
parent1129c92faa069581bf3acf34cae92477bd6161d8
ACPI / scan: Allow platform device creation without any IO resources

Currently, ACPI platform device creation is aborted when there
are no valid IO resources for the device.  This approach will not
work if the device has only GPIO as its resource or some custom
resources.

Remove zero resource check and allow platform device creation even
without any valid IO resources.

[rjw: Changelog]
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_platform.c