Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 416fd1ae authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

Merge branch 'acpi-assorted'

* acpi-assorted:
  ACPI / LPSS: don't crash if a device has no MMIO resources
parents 8ca11824 af65cfe9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -257,12 +257,13 @@ static int acpi_lpss_create_device(struct acpi_device *adev,
				pdata->mmio_size = resource_size(&rentry->res);
			pdata->mmio_base = ioremap(rentry->res.start,
						   pdata->mmio_size);
			pdata->dev_desc = dev_desc;
			break;
		}

	acpi_dev_free_resource_list(&resource_list);

	pdata->dev_desc = dev_desc;

	if (dev_desc->clk_required) {
		ret = register_device_clock(adev, pdata);
		if (ret) {