Skip to contentSkip to conversation

mips:Fix build error for ip32_defconfig configuration

PATCH Superseded Nicholas Krause 2 participants 3 messages May 8, 2015 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mips:Fix build error for ip32_defconfig configuration

This fixes the make error when building the ip32_defconfig configuration due to using sgio2_cmos_devinit rather then the correct function,sgio2_rtc_devinit in a device_initcall below this function's definition.

---
 arch/mips/sgi-ip32/ip32-platform.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/sgi-ip32/ip32-platform.c +2 -2
index 0134db2..2a7efcb 100644
@@ -130,9 +130,9 @@ struct platform_device ip32_rtc_device = {
 	.resource		= ip32_rtc_resources,
 };
 
-+static int __init sgio2_rtc_devinit(void)
+static  __init int sgio2_rtc_devinit(void)
 {
 	return platform_device_register(&ip32_rtc_device);
 }
 
-device_initcall(sgio2_cmos_devinit);
+device_initcall(sgio2_rtc_devinit);
Signature · 1 line
2.1.4
#1 lore raw
Quoted 17 lines · Nicholas Krause

This fixes the make error when building the ip32_defconfig configuration due to using sgio2_cmos_devinit rather then the correct function,sgio2_rtc_devinit in a device_initcall below this function's definition.

---
 arch/mips/sgi-ip32/ip32-platform.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/sgi-ip32/ip32-platform.c +0 -0
index 0134db2..2a7efcb 100644
@@ -130,9 +130,9 @@ struct platform_device ip32_rtc_device = {
 	.resource		= ip32_rtc_resources,

arch/mips/sgi-ip32/ip32-platform.c struct platform_device ip32_rtc_device = { · line 138

Quoted 10 lines
arch/mips/sgi-ip32/ip32-platform.c +2 -2
 };
 
-+static int __init sgio2_rtc_devinit(void)
+static  __init int sgio2_rtc_devinit(void)
 {
 	return platform_device_register(&ip32_rtc_device);
 }
 
-device_initcall(sgio2_cmos_devinit);
+device_initcall(sgio2_rtc_devinit);

I believe I sent this patch in already, back on 04/19/2015. Didn't get an acknowledgement on it from akpm, though.

--J

author
#2 lore raw
Quoted 25 lines · Joshua Kinard
Quoted 24 lines · Nicholas Krause

This fixes the make error when building the ip32_defconfig configuration due to using sgio2_cmos_devinit rather then the correct function,sgio2_rtc_devinit in a device_initcall below this function's definition.

---
 arch/mips/sgi-ip32/ip32-platform.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/sgi-ip32/ip32-platform.c +1 -1
index 0134db2..2a7efcb 100644
@@ -130,9 +130,9 @@ struct platform_device ip32_rtc_device = {
 	.resource		= ip32_rtc_resources,
 };
 
-+static int __init sgio2_rtc_devinit(void)
+static  __init int sgio2_rtc_devinit(void)
 {
 	return platform_device_register(&ip32_rtc_device);
 }
 
Quoted 9 lines

arch/mips/sgi-ip32/ip32-platform.c struct platform_device ip32_rtc_device = { · line 138

Quoted 3 lines
arch/mips/sgi-ip32/ip32-platform.c +1 -1
-device_initcall(sgio2_cmos_devinit);
+device_initcall(sgio2_rtc_devinit);

I believe I sent this patch in already, back on 04/19/2015. Didn't get an acknowledgement on it from akpm, though.

--J

That's fine, I didn't known about that.
Sorry Nick