mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 12:21:37 +00:00
Merge branch 'acpi-assorted'
* acpi-assorted: ACPI / LPSS: don't crash if a device has no MMIO resources
This commit is contained in:
commit
416fd1ae87
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user