|
@@ -352,13 +352,16 @@ 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);
|
|
- if (!pdata->mmio_base)
|
|
|
|
- goto err_out;
|
|
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
acpi_dev_free_resource_list(&resource_list);
|
|
acpi_dev_free_resource_list(&resource_list);
|
|
|
|
|
|
|
|
+ if (!pdata->mmio_base) {
|
|
|
|
+ ret = -ENOMEM;
|
|
|
|
+ goto err_out;
|
|
|
|
+ }
|
|
|
|
+
|
|
pdata->dev_desc = dev_desc;
|
|
pdata->dev_desc = dev_desc;
|
|
|
|
|
|
if (dev_desc->setup)
|
|
if (dev_desc->setup)
|