]> git.itanic.dy.fi Git - linux-stable/commit
staging: mt7621-pci: parse some dt properties from root port child nodes
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 7 Jun 2021 12:01:52 +0000 (14:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jun 2021 12:19:22 +0000 (14:19 +0200)
commit2d3d288f0eaf102c3739ad811fa9727c742a49e0
tree5c8b89ac6544ebfc79984b33ee1ed672ead49ccb
parentcf37f42997a10da6e07d5404fbf4b537d9be32ec
staging: mt7621-pci: parse some dt properties from root port child nodes

Properties 'clocks', 'resets' and 'phys' have been moved from parent
node to the root port children. Hence we have to adapt the way device
tree is parsed in driver code to properly align things and make all
the stuff work.
Note that we moved from using 'devm_reset_control_get_exclusive() to
'of_reset_control_get_exclusive()' so we need to properly call the
'reset_control_put()' function manually in error and remove paths.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20210607120153.24989-6-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c