mediatek: prepare old rtk switch driver for use with Linux 6.1
authorDaniel Golle <daniel@makrotopia.org>
Sun, 18 Jun 2023 01:22:51 +0000 (03:22 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 7 Jul 2023 12:01:39 +0000 (14:01 +0200)
commit0c5605b70c7853eff73e5a6d7dfb4b650e0b4420
treeafa7eed447ff571fdfd65357ccb3fb254e5d1ead
parente386b279fdab758f75160636bca5385dae202aee
mediatek: prepare old rtk switch driver for use with Linux 6.1

The old RealTek RTL8367S switch driver which is used for some MT7622
devices needs to be modified to no longer free the GPIO after reset
has completed.
This is due to Linux 5.19 removing devm_gpio_free via commit
2b038e786f83 ("gpiolib: devres: Get rid of unused devm_gpio_free()")

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367s_mdio.c