[PATCH v2 04/10] PCI: Add dev parameter to __of_pci_get_host_bridge_resources()

Vladimir Zapolskiy vladimir_zapolskiy at mentor.com
Thu May 3 00:14:20 PDT 2018


On 04/30/2018 08:48 AM, Jan Kiszka wrote:
> From: Jan Kiszka <jan.kiszka at siemens.com>
> 
> When non-NULL, use the new dev parameter of
> __of_pci_get_host_bridge_resources() to allocate the resource data
> structures via devm_kzalloc. That allows to release them automatically
> during device destruction.
> 
> Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>

Reviewed-by: Vladimir Zapolskiy <vladimir_zapolskiy at mentor.com>
Tested-by: Vladimir Zapolskiy <vladimir_zapolskiy at mentor.com>

--
With best wishes,
Vladimir



More information about the linux-arm-kernel mailing list