]> git.baikalelectronics.ru Git - kernel.git/commit
usb: ohci-spear: Remove direct access to platform_device resource list
authorRob Herring <robh@kernel.org>
Wed, 15 Dec 2021 22:55:09 +0000 (16:55 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Dec 2021 15:51:31 +0000 (16:51 +0100)
commitbf6753e74dd4ab588ed89831cd41e6801a5babcc
treeebcd83162ee63f5b043ca70653c89b4f439b25b4
parent21061d8b36a294a357bf6513efe311d63641e775
usb: ohci-spear: Remove direct access to platform_device resource list

The memory resource is already retrieved with platform_get_resource(), so
let's use it instead of assuming it is the first resource in the array.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20211215225509.1995417-1-robh@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-spear.c