lkml.org 
[lkml]   [2014]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v6 2/6] pci: OF: Fix the conversion of IO ranges into IO resources.
Date
On Wednesday 05 March 2014, Liviu Dudau wrote:
> + unsigned long port = -1;
> + if (!pci_register_io_range(range->cpu_addr, range->size))
> + port = pci_address_to_pio(range->cpu_addr);

I don't remember the outcome of my suggestion to just return 'port' from
pci_register_io_range(). In my mind that would be much simpler than
adding the range in a data structure just so we can look it up in the very
next line.

Arnd


\
 
 \ /
  Last update: 2014-03-08 18:41    [W:0.117 / U:0.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site