aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-10-25 03:34:10 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-10-25 03:34:10 -0400
commitcd85b557414fe4cd44ea6608825e96612a5fe2b2 (patch)
tree8299d2bd75d4516b1c86aea06b296bdd3fcd2044
parent04a8752485e450124f92c9b931d268b48d75650a (diff)
parentbc74ee976959616e3c1cc1341383bf2316dd4096 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k: m68k: Finally remove leftover markers sections m68k/mac: Fix mac_irq_pending() for PSC MACE and SCC m68k/mac: Fix compiler warning in via_read_time() zorro: Fix four checkpatch warnings
-rw-r--r--arch/m68k/kernel/vmlinux.lds_no.S1
-rw-r--r--arch/m68k/mac/macints.c2
-rw-r--r--arch/m68k/mac/misc.c40
-rw-r--r--drivers/zorro/zorro-driver.c8
-rw-r--r--include/asm-generic/vmlinux.lds.h1
5 files changed, 28 insertions, 24 deletions
diff --git a/arch/m68k/kernel/vmlinux.lds_no.S b/arch/m68k/kernel/vmlinux.lds_no.S
index 7dc4087a9545..4e2389340837 100644
--- a/arch/m68k/kernel/vmlinux.lds_no.S
+++ b/arch/m68k/kernel/vmlinux.lds_no.S
@@ -77,7 +77,6 @@ SECTIONS {
77 77
78 *(.rodata) *(.rodata.*) 78 *(.rodata) *(.rodata.*)
79 *(__vermagic) /* Kernel version magic */ 79 *(__vermagic) /* Kernel version magic */
80 *(__markers_strings)
81 *(.rodata1) 80 *(.rodata1)
82 *(.rodata.str1.1) 81 *(.rodata.str1.1)
83 82
diff --git a/arch/m68k/mac/macints.c b/arch/m68k/mac/macints.c
index 900d899f3323..f92190c159b4 100644
--- a/arch/m68k/mac/macints.c
+++ b/arch/m68k/mac/macints.c
@@ -370,7 +370,7 @@ int mac_irq_pending(unsigned int irq)
370 break; 370 break;
371 case 4: 371 case 4:
372 if (psc_present) 372 if (psc_present)
373 psc_irq_pending(irq); 373 return psc_irq_pending(irq);
374 break; 374 break;
375 } 375 }
376 return 0; 376 return 0;
diff --git a/arch/m68k/mac/misc.c b/arch/m68k/mac/misc.c
index e023fc6b37e5..eb915551de69 100644
--- a/arch/m68k/mac/misc.c
+++ b/arch/m68k/mac/misc.c
@@ -304,35 +304,41 @@ static void via_write_pram(int offset, __u8 data)
304static long via_read_time(void) 304static long via_read_time(void)
305{ 305{
306 union { 306 union {
307 __u8 cdata[4]; 307 __u8 cdata[4];
308 long idata; 308 long idata;
309 } result, last_result; 309 } result, last_result;
310 int ct; 310 int count = 1;
311
312 via_pram_command(0x81, &last_result.cdata[3]);
313 via_pram_command(0x85, &last_result.cdata[2]);
314 via_pram_command(0x89, &last_result.cdata[1]);
315 via_pram_command(0x8D, &last_result.cdata[0]);
311 316
312 /* 317 /*
313 * The NetBSD guys say to loop until you get the same reading 318 * The NetBSD guys say to loop until you get the same reading
314 * twice in a row. 319 * twice in a row.
315 */ 320 */
316 321
317 ct = 0; 322 while (1) {
318 do {
319 if (++ct > 10) {
320 printk("via_read_time: couldn't get valid time, "
321 "last read = 0x%08lx and 0x%08lx\n",
322 last_result.idata, result.idata);
323 break;
324 }
325
326 last_result.idata = result.idata;
327 result.idata = 0;
328
329 via_pram_command(0x81, &result.cdata[3]); 323 via_pram_command(0x81, &result.cdata[3]);
330 via_pram_command(0x85, &result.cdata[2]); 324 via_pram_command(0x85, &result.cdata[2]);
331 via_pram_command(0x89, &result.cdata[1]); 325 via_pram_command(0x89, &result.cdata[1]);
332 via_pram_command(0x8D, &result.cdata[0]); 326 via_pram_command(0x8D, &result.cdata[0]);
333 } while (result.idata != last_result.idata);
334 327
335 return result.idata - RTC_OFFSET; 328 if (result.idata == last_result.idata)
329 return result.idata - RTC_OFFSET;
330
331 if (++count > 10)
332 break;
333
334 last_result.idata = result.idata;
335 }
336
337 pr_err("via_read_time: failed to read a stable value; "
338 "got 0x%08lx then 0x%08lx\n",
339 last_result.idata, result.idata);
340
341 return 0;
336} 342}
337 343
338/* 344/*
diff --git a/drivers/zorro/zorro-driver.c b/drivers/zorro/zorro-driver.c
index 7ee2b6e71786..229624f867d3 100644
--- a/drivers/zorro/zorro-driver.c
+++ b/drivers/zorro/zorro-driver.c
@@ -37,6 +37,7 @@ zorro_match_device(const struct zorro_device_id *ids,
37 } 37 }
38 return NULL; 38 return NULL;
39} 39}
40EXPORT_SYMBOL(zorro_match_device);
40 41
41 42
42static int zorro_device_probe(struct device *dev) 43static int zorro_device_probe(struct device *dev)
@@ -91,6 +92,7 @@ int zorro_register_driver(struct zorro_driver *drv)
91 /* register with core */ 92 /* register with core */
92 return driver_register(&drv->driver); 93 return driver_register(&drv->driver);
93} 94}
95EXPORT_SYMBOL(zorro_register_driver);
94 96
95 97
96 /** 98 /**
@@ -107,6 +109,7 @@ void zorro_unregister_driver(struct zorro_driver *drv)
107{ 109{
108 driver_unregister(&drv->driver); 110 driver_unregister(&drv->driver);
109} 111}
112EXPORT_SYMBOL(zorro_unregister_driver);
110 113
111 114
112 /** 115 /**
@@ -168,6 +171,7 @@ struct bus_type zorro_bus_type = {
168 .probe = zorro_device_probe, 171 .probe = zorro_device_probe,
169 .remove = zorro_device_remove, 172 .remove = zorro_device_remove,
170}; 173};
174EXPORT_SYMBOL(zorro_bus_type);
171 175
172 176
173static int __init zorro_driver_init(void) 177static int __init zorro_driver_init(void)
@@ -177,7 +181,3 @@ static int __init zorro_driver_init(void)
177 181
178postcore_initcall(zorro_driver_init); 182postcore_initcall(zorro_driver_init);
179 183
180EXPORT_SYMBOL(zorro_match_device);
181EXPORT_SYMBOL(zorro_register_driver);
182EXPORT_SYMBOL(zorro_unregister_driver);
183EXPORT_SYMBOL(zorro_bus_type);
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
index db22d136ad08..b5e2e4c6b017 100644
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -222,7 +222,6 @@
222 VMLINUX_SYMBOL(__start___tracepoints_ptrs) = .; \ 222 VMLINUX_SYMBOL(__start___tracepoints_ptrs) = .; \
223 *(__tracepoints_ptrs) /* Tracepoints: pointer array */\ 223 *(__tracepoints_ptrs) /* Tracepoints: pointer array */\
224 VMLINUX_SYMBOL(__stop___tracepoints_ptrs) = .; \ 224 VMLINUX_SYMBOL(__stop___tracepoints_ptrs) = .; \
225 *(__markers_strings) /* Markers: strings */ \
226 *(__tracepoints_strings)/* Tracepoints: strings */ \ 225 *(__tracepoints_strings)/* Tracepoints: strings */ \
227 } \ 226 } \
228 \ 227 \