lkml.org 
[lkml]   [2016]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V7 07/11] pci, acpi: Handle ACPI companion assignment.
On Thu, May 12, 2016 at 12:50:07PM +0200, Tomasz Nowicki wrote:
> On 12.05.2016 00:43, Bjorn Helgaas wrote:

> >@@ -70,9 +71,11 @@ struct pci_config_window *pci_ecam_create(struct device *dev,
> > cfg->res.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
> > cfg->res.name = "PCI ECAM";
> >
> >- err = request_resource(&iomem_resource, &cfg->res);
> >- if (err) {
> >- dev_err(dev, "request ECAM res %pR failed\n", &cfg->res);
> >+ conflict = request_resource(&iomem_resource, &cfg->res);
>
> We need request_resource_conflict here then:
> - conflict = request_resource(&iomem_resource, &cfg->res);
> + conflict = request_resource_conflict(&iomem_resource, &cfg->res);

Whoops, fixed, thanks!

\
 
 \ /
  Last update: 2016-05-12 14:21    [W:2.061 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site