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

Commit 4483d59e authored by Heikki Krogerus's avatar Heikki Krogerus Committed by Rafael J. Wysocki
Browse files

ACPI / LPSS: check the result of ioremap()



If it fails we have to skip the device.

Signed-off-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent ec6f34e5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -340,6 +340,8 @@ 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);
			if (!pdata->mmio_base)
				goto err_out;
			break;
		}