aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/powermac/udbg_adb.c8
-rw-r--r--arch/powerpc/platforms/powermac/udbg_scc.c4
-rw-r--r--arch/powerpc/platforms/pseries/lpar.c4
3 files changed, 8 insertions, 8 deletions
diff --git a/arch/powerpc/platforms/powermac/udbg_adb.c b/arch/powerpc/platforms/powermac/udbg_adb.c
index 3d5ed23bf0e0..06c8265c2baf 100644
--- a/arch/powerpc/platforms/powermac/udbg_adb.c
+++ b/arch/powerpc/platforms/powermac/udbg_adb.c
@@ -29,7 +29,7 @@
29 */ 29 */
30 30
31static void (*udbg_adb_old_putc)(char c); 31static void (*udbg_adb_old_putc)(char c);
32static char (*udbg_adb_old_getc)(void); 32static int (*udbg_adb_old_getc)(void);
33static int (*udbg_adb_old_getc_poll)(void); 33static int (*udbg_adb_old_getc_poll)(void);
34 34
35static enum { 35static enum {
@@ -73,7 +73,7 @@ static unsigned char xmon_shift_keytab[128] =
73 "\0.\0*\0+\0\0\0\0\0/\r\0-\0" /* 0x40 - 0x4f */ 73 "\0.\0*\0+\0\0\0\0\0/\r\0-\0" /* 0x40 - 0x4f */
74 "\0\0000123456789\0\0\0"; /* 0x50 - 0x5f */ 74 "\0\0000123456789\0\0\0"; /* 0x50 - 0x5f */
75 75
76static char udbg_adb_local_getc(void) 76static int udbg_adb_local_getc(void)
77{ 77{
78 int k, t, on; 78 int k, t, on;
79 79
@@ -116,7 +116,7 @@ static char udbg_adb_local_getc(void)
116} 116}
117#endif /* CONFIG_BOOTX_TEXT */ 117#endif /* CONFIG_BOOTX_TEXT */
118 118
119static char udbg_adb_getc(void) 119static int udbg_adb_getc(void)
120{ 120{
121#ifdef CONFIG_BOOTX_TEXT 121#ifdef CONFIG_BOOTX_TEXT
122 if (udbg_adb_use_btext && input_type != input_adb_none) 122 if (udbg_adb_use_btext && input_type != input_adb_none)
@@ -195,7 +195,7 @@ int udbg_adb_init(int force_btext)
195 */ 195 */
196 for (np = NULL; (np = of_find_node_by_name(np, "keyboard")) != NULL;) { 196 for (np = NULL; (np = of_find_node_by_name(np, "keyboard")) != NULL;) {
197 struct device_node *parent = of_get_parent(np); 197 struct device_node *parent = of_get_parent(np);
198 int found = (parent && !strcmp(parent->type, "adb") == 0); 198 int found = (parent && strcmp(parent->type, "adb") == 0);
199 of_node_put(parent); 199 of_node_put(parent);
200 if (found) 200 if (found)
201 break; 201 break;
diff --git a/arch/powerpc/platforms/powermac/udbg_scc.c b/arch/powerpc/platforms/powermac/udbg_scc.c
index df6dec49c4c7..e87d53acfb61 100644
--- a/arch/powerpc/platforms/powermac/udbg_scc.c
+++ b/arch/powerpc/platforms/powermac/udbg_scc.c
@@ -47,14 +47,14 @@ static int udbg_scc_getc_poll(void)
47 return -1; 47 return -1;
48} 48}
49 49
50static char udbg_scc_getc(void) 50static int udbg_scc_getc(void)
51{ 51{
52 if (sccc) { 52 if (sccc) {
53 while ((in_8(sccc) & SCC_RXRDY) == 0) 53 while ((in_8(sccc) & SCC_RXRDY) == 0)
54 ; 54 ;
55 return in_8(sccd); 55 return in_8(sccd);
56 } 56 }
57 return 0; 57 return -1;
58} 58}
59 59
60static unsigned char scc_inittab[] = { 60static unsigned char scc_inittab[] = {
diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c
index 615ffb961059..1fe445ab78a6 100644
--- a/arch/powerpc/platforms/pseries/lpar.c
+++ b/arch/powerpc/platforms/pseries/lpar.c
@@ -112,7 +112,7 @@ static int udbg_hvsi_getc_poll(void)
112 return ch; 112 return ch;
113} 113}
114 114
115static char udbg_hvsi_getc(void) 115static int udbg_hvsi_getc(void)
116{ 116{
117 int ch; 117 int ch;
118 for (;;) { 118 for (;;) {
@@ -173,7 +173,7 @@ static int udbg_getc_pollLP(void)
173 return ch; 173 return ch;
174} 174}
175 175
176static char udbg_getcLP(void) 176static int udbg_getcLP(void)
177{ 177{
178 int ch; 178 int ch;
179 for (;;) { 179 for (;;) {