projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec6f34e
)
ACPI / LPSS: check the result of ioremap()
author
Heikki Krogerus
<
[email protected]
>
Thu, 8 Jan 2015 07:57:25 +0000
(09:57 +0200)
committer
Rafael J. Wysocki
<
[email protected]
>
Thu, 22 Jan 2015 00:20:02 +0000
(
01:20
+0100)
If it fails we have to skip the device.
Signed-off-by: Heikki Krogerus <
[email protected]
>
Signed-off-by: Rafael J. Wysocki <
[email protected]
>
drivers/acpi/acpi_lpss.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/acpi_lpss.c
b/drivers/acpi/acpi_lpss.c
index 4f3febf8a58954b2ca8ced8c057106529ab1f30b..d12f98abf8368e35cb980caa77f7e9c28da9b016 100644
(file)
--- a/
drivers/acpi/acpi_lpss.c
+++ b/
drivers/acpi/acpi_lpss.c
@@
-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;
}