i2c-i801: make it depend on CONFIG_X86
PATCH 1/1 i2c-i801: make it depend on CONFIG_X86
The IP seems not used outside of x86 world, so, make it depend on CONFIG_X86.
--- drivers/i2c/busses/Kconfig | 4 ++-- drivers/i2c/busses/i2c-i801.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/i2c/busses/Kconfig +2 -2
@@ -89,8 +89,8 @@ config I2C_HIX5HD2 config I2C_I801 tristate "Intel 82801 (ICH/PCH)" - depends on PCI - select CHECK_SIGNATURE if X86 && DMI + depends on X86 && PCI + select CHECK_SIGNATURE if DMI help If you say yes to this option, support will be included for the Intel 801 family of mainboard I2C interfaces. Specifically, the following
drivers/i2c/busses/i2c-i801.c +2 -2
@@ -902,7 +902,7 @@ static const struct pci_device_id i801_ids[] = {MODULE_DEVICE_TABLE (pci, i801_ids); -#if definedCONFIG_X86 && definedCONFIG_DMI +#ifdef CONFIG_DMI static unsigned char apanel_addr;/* Scan the system ROM for the signature "FJKEYINF" */
@@ -1020,7 +1020,7 @@ static void i801_probe_optional_slaves(struct i801_priv *priv)#else static void __init input_apanel_init (void ) {}static void i801_probe_optional_slaves (struct i801_priv *priv) {} -#endif /* CONFIG_X86 && CONFIG_DMI */ +#endif /* CONFIG_DMI */ #if (definedCONFIG_I2C_MUX_GPIO || definedCONFIG_I2C_MUX_GPIO_MODULE ) && \ definedCONFIG_DMI
Signature · 1 line
2.8.1
Hi Andy,
Quoted 1 line · Andy Shevchenko
The IP seems not used outside of x86 world, so, make it depend on
CONFIG_X86.
I've seen the ICH10 used on at least one IA64 system (Supermicro I8QBH mainboard.) So, nack, sorry. However I'd be OK with:
depends on X86 || IA64 || COMPILE_TEST
Quoted 43 lines
Signed-off-by Andy Shevchenko <[email protected]>--- drivers/i2c/busses/Kconfig | 4 ++-- drivers/i2c/busses/i2c-i801.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)drivers/i2c/busses/Kconfig +2
-2@@ -89,8 +89,8 @@ config I2C_HIX5HD2 config I2C_I801 tristate "Intel 82801 (ICH/PCH)" - depends on PCI - select CHECK_SIGNATURE if X86 && DMI + depends on X86 && PCI + select CHECK_SIGNATURE if DMI help If you say yes to this option, support will be included for the Intel 801 family of mainboard I2C interfaces. Specifically,the following diff --git
a/drivers/i2c/busses/i2c-i801.cb/drivers/i2c/busses/i2c-i801.cindex b436963..9dcc417 100644drivers/i2c/busses/i2c-i801.c +1
-1@@ -902,7 +902,7 @@ static const struct pci_device_id i801_ids[] = {MODULE_DEVICE_TABLE (pci, i801_ids); -#if definedCONFIG_X86 && definedCONFIG_DMI +#ifdef CONFIG_DMI static unsigned char apanel_addr;/* Scan the system ROM for the signature "FJKEYINF" */ @@ -1020,7 +1020,7 @@ static void i801_probe_optional_slaves(struct
i801_priv*priv) #else
static void__initinput_apanel_init(void){}
static voidi801_probe_optional_slaves(struct i801_priv *priv){}drivers/i2c/busses/i2c-i801.c +1
-1-#endif /* CONFIG_X86 && CONFIG_DMI */ +#endif /* CONFIG_DMI */ #if (defined CONFIG_I2C_MUX_GPIO || defined
CONFIG_I2C_MUX_GPIO_MODULE) && \ definedCONFIG_DMI
Signature · 2 lines
Jean Delvare SUSE L3 Support
Quoted 10 lines · Jean Delvare
Hi Andy,
Quoted 2 lines · Andy Shevchenko
The IP seems not used outside of x86 world, so, make it depend on
CONFIG_X86.I've seen the ICH10 used on at least one IA64 system (Supermicro I8QBH mainboard.) So, nack, sorry. However I'd be OK with:
depends on X86 || IA64 || COMPILE_TEST
I don't like this. Anyway it's good to know that module is used somewhere else. Thanks.
Quoted 46 lines
Quoted 44 lines
Signed-off-by Andy Shevchenko <[email protected]>---
drivers/i2c/busses/Kconfig | 4 ++--
drivers/i2c/busses/i2c-i801.c | 4 ++--2 files changed, 4 insertions(+), 4 deletions(-)drivers/i2c/busses/Kconfig +0
-0@@ -89,8 +89,8 @@ config I2C_HIX5HD2
configI2C_I801
tristate "Intel 82801 (ICH/PCH)"drivers/i2c/busses/Kconfig +2
-2- depends on PCI - select CHECK_SIGNATURE if X86 && DMI + depends on X86 && PCI + select CHECK_SIGNATURE if DMIhelp
If you say yes to this option, support will be included for the Intel 801 family of mainboard I2C interfaces. Specifically, the following diff --gita/drivers/i2c/busses/i2c-i801.cb/drivers/i2c/busses/i2c-i801.cindex b436963..9dcc417 100644drivers/i2c/busses/i2c-i801.c +0
-0@@ -902,7 +902,7 @@ static const struct pci_device_id i801_ids[] = {
MODULE_DEVICE_TABLE(pci,i801_ids);drivers/i2c/busses/i2c-i801.c +1
-1-#if definedCONFIG_X86 && definedCONFIG_DMI +#ifdef CONFIG_DMI static unsigned char
apanel_addr;
/* Scan the system ROM for the signature "FJKEYINF" */drivers/i2c/busses/i2c-i801.c +0
-0@@ -1020,7 +1020,7 @@ static void i801_probe_optional_slaves(struct
i801_priv*priv) #else
static void__initinput_apanel_init(void){}
static voidi801_probe_optional_slaves(struct i801_priv *priv){}drivers/i2c/busses/i2c-i801.c +1
-1-#endif /* CONFIG_X86 && CONFIG_DMI */ +#endif /* CONFIG_DMI */
#if (definedCONFIG_I2C_MUX_GPIO|| definedCONFIG_I2C_MUX_GPIO_MODULE) && \ definedCONFIG_DMI
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy
Quoted 7 lines · Andy Shevchenko
Quoted 6 lines · Jean Delvare
Hi Andy,
Quoted 2 lines · Andy Shevchenko
The IP seems not used outside of x86 world, so, make it depend on
CONFIG_X86.
Quoted 6 lines
Quoted 4 lines
I've seen the ICH10 used on at least one IA64 system (Supermicro I8QBH mainboard.) So, nack, sorry. However I'd be OK with:
depends on X86 || IA64 || COMPILE_TESTI don't like this. (...)
May I ask why?
Quoted 47 lines
Anyway it's good to know that module is used
somewhere else. Thanks.Quoted 44 lines
Quoted 44 lines
Signed-off-by Andy Shevchenko <[email protected]>---
drivers/i2c/busses/Kconfig | 4 ++--
drivers/i2c/busses/i2c-i801.c | 4 ++--2 files changed, 4 insertions(+), 4 deletions(-)drivers/i2c/busses/Kconfig +0
-0@@ -89,8 +89,8 @@ config I2C_HIX5HD2
configI2C_I801
tristate "Intel 82801 (ICH/PCH)"drivers/i2c/busses/Kconfig +2
-2- depends on PCI - select CHECK_SIGNATURE if X86 && DMI + depends on X86 && PCI + select CHECK_SIGNATURE if DMIhelp
If you say yes to this option, support will be included for the Intel 801 family of mainboard I2C interfaces. Specifically, the following diff --gita/drivers/i2c/busses/i2c-i801.cb/drivers/i2c/busses/i2c-i801.cindex b436963..9dcc417 100644drivers/i2c/busses/i2c-i801.c +0
-0@@ -902,7 +902,7 @@ static const struct pci_device_id i801_ids[] = {
MODULE_DEVICE_TABLE(pci,i801_ids);drivers/i2c/busses/i2c-i801.c +1
-1-#if definedCONFIG_X86 && definedCONFIG_DMI +#ifdef CONFIG_DMI static unsigned char
apanel_addr;
/* Scan the system ROM for the signature "FJKEYINF" */drivers/i2c/busses/i2c-i801.c +0
-0@@ -1020,7 +1020,7 @@ static void i801_probe_optional_slaves(struct
i801_priv*priv) #else
static void__initinput_apanel_init(void){}
static voidi801_probe_optional_slaves(struct i801_priv *priv){}drivers/i2c/busses/i2c-i801.c +1
-1-#endif /* CONFIG_X86 && CONFIG_DMI */ +#endif /* CONFIG_DMI */
#if (definedCONFIG_I2C_MUX_GPIO|| definedCONFIG_I2C_MUX_GPIO_MODULE) && \ definedCONFIG_DMI
Quoted 9 lines · Jean Delvare
Quoted 4 lines · Andy Shevchenko
Quoted 1 line · Jean Delvare
depends on X86 || IA64 || COMPILE_TESTI don't like this. (...)
May I ask why?
From my point of view it's not scalable. If new arch comes you have to
add it here.
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy