]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Thu, 25 Jul 2013 22:42:02 +0000 (00:42 +0200)
commit8ce0fdc3d1dea37f2872c07ee75311fce67f8185
tree5b0572bea29fd75c01261c14587dfce09e44be6c
parentf12f16aa6e61312ef4c12cfaa9c81a3c59406397
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