summaryrefslogtreecommitdiff
path: root/target/linux/realtek/patches-5.10/303-gpio-update-dependencies-for-gpio-realtek-otto.patch
blob: 1763d31fb0dca6091c0fab54fff2177e4b7f91b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 9bac1c20b8f39f2e0e342b087add5093b94feaed Mon Sep 17 00:00:00 2001
From: INAGAKI Hiroshi <musashino.open@gmail.com>
Date: Wed, 5 May 2021 22:05:39 +0900
Subject: realtek: fix gpio-realtek-otto driver dependency

"MACH_REALTEK_RTL" is used as a platform name in upstream, but "RTL838X"
is used in OpenWrt, so fix the dependency by renaming it.

Submitted-by: INAGAKI Hiroshi <musashino.open@gmail.com>
---
 drivers/gpio/Kconfig                          |   4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -491,8 +491,8 @@ config GPIO_RDA
 
 config GPIO_REALTEK_OTTO
 	tristate "Realtek Otto GPIO support"
-	depends on MACH_REALTEK_RTL
-	default MACH_REALTEK_RTL
+	depends on RTL83XX
+	default RTL838X
 	select GPIO_GENERIC
 	select GPIOLIB_IRQCHIP
 	help