Merge branch 'acpi-assorted'

* acpi-assorted:
  ACPI / LPSS: don't crash if a device has no MMIO resources
This commit is contained in:
Rafael J. Wysocki 2013-09-10 23:15:17 +02:00
commit 416fd1ae87

View File

@ -257,12 +257,13 @@ static int acpi_lpss_create_device(struct acpi_device *adev,
pdata->mmio_size = resource_size(&rentry->res); pdata->mmio_size = resource_size(&rentry->res);
pdata->mmio_base = ioremap(rentry->res.start, pdata->mmio_base = ioremap(rentry->res.start,
pdata->mmio_size); pdata->mmio_size);
pdata->dev_desc = dev_desc;
break; break;
} }
acpi_dev_free_resource_list(&resource_list); acpi_dev_free_resource_list(&resource_list);
pdata->dev_desc = dev_desc;
if (dev_desc->clk_required) { if (dev_desc->clk_required) {
ret = register_device_clock(adev, pdata); ret = register_device_clock(adev, pdata);
if (ret) { if (ret) {