lantiq: use devm_gpiod_get_optional in PCI driver
authorMathias Kresin <dev@kresin.me>
Thu, 31 Jan 2019 06:52:26 +0000 (07:52 +0100)
committerMathias Kresin <dev@kresin.me>
Mon, 12 Apr 2021 21:37:51 +0000 (23:37 +0200)
commit5bd68eb4361132a071cba5347c132c0c9b881854
treebcc4c64d0518163e6a4612b1ef191c7e7d6b8dc2
parent7ccdc9e772b12fa5e0bb228fddf860dd58bca474
lantiq: use devm_gpiod_get_optional in PCI driver

Use devm_gpiod_get_optional to aquire the reset gpio and get rid of
quite some code this way.

Since devicetree source files have to be touched to switch to the new
devicetree property, backport a patch fixing the wrong logic in the
reset gpio routines as well.

Signed-off-by: Mathias Kresin <dev@kresin.me>
29 files changed:
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_avm_fritz7312.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_avm_fritz7320.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_bt_homehub-v3a.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_netgear_dgn3500.dtsi
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv4510pw.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv4518pwr01.dtsi
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv4519pw.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv4520pw.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv4525pw.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv452cqw.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7506pw11.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7510pw22.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7518pw.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7519pw.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv752dpw.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv752dpw22.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv8539pw22.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_bt_homehub-v2b.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_siemens_gigaset-sx76x.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7510kw22.dtsi
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7519.dtsi
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_bt_homehub-v5a.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_tplink_tdw8980.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_tplink_vr200.dtsi
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_zyxel_p-2812hnu-fx.dtsi
target/linux/lantiq/patches-5.10/0202-MIPS-lantiq-pci-fix-inverted-gpio-reset-logic.patch [new file with mode: 0644]
target/linux/lantiq/patches-5.10/0203-MIPS-lantiq-pci-use-devm_gpiod_get_optional.patch [new file with mode: 0644]
target/linux/lantiq/patches-5.4/0202-MIPS-lantiq-pci-fix-inverted-gpio-reset-logic.patch [new file with mode: 0644]
target/linux/lantiq/patches-5.4/0203-MIPS-lantiq-pci-use-devm_gpiod_get_optional.patch [new file with mode: 0644]