aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2012-10-21 03:01:09 -0400
committerPaul Walmsley <paul@pwsan.com>2012-10-21 03:01:09 -0400
commit7a0c19337c38a1ffa7587272e7784e6431e78eaa (patch)
treec8c2828c82bcd86b3e8b28cd1a9f358ea4db30ae /arch/arm
parent6f0c0580b70c89094b3422ba81118c7b959c7556 (diff)
ARM: OMAP2+: PRM: remove PRM weak functions
Remove the now-unused PRM weak functions from prm_common.c. These were formerly used to ensure that some OMAP2/3 PRM code would build on OMAP4, but none of those functions ever would have worked on OMAP4 due to an incompatible PRM register layout. Now all that has been cleaned up and these can be removed. Signed-off-by: Paul Walmsley <paul@pwsan.com> Reviewed-by: Russ Dill <Russ.Dill@ti.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-omap2/prm_common.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/arch/arm/mach-omap2/prm_common.c b/arch/arm/mach-omap2/prm_common.c
index 6b4d332be2f6..0a100d9465b4 100644
--- a/arch/arm/mach-omap2/prm_common.c
+++ b/arch/arm/mach-omap2/prm_common.c
@@ -318,65 +318,3 @@ err:
318 omap_prcm_irq_cleanup(); 318 omap_prcm_irq_cleanup();
319 return -ENOMEM; 319 return -ENOMEM;
320} 320}
321
322/*
323 * Stubbed functions so that common files continue to build when
324 * custom builds are used
325 * XXX These are temporary and should be removed at the earliest possible
326 * opportunity
327 */
328u32 __weak omap2_prm_read_mod_reg(s16 module, u16 idx)
329{
330 WARN(1, "prm: omap2xxx/omap3xxx specific function called on non-omap2xxx/3xxx\n");
331 return 0;
332}
333
334void __weak omap2_prm_write_mod_reg(u32 val, s16 module, u16 idx)
335{
336 WARN(1, "prm: omap2xxx/omap3xxx specific function called on non-omap2xxx/3xxx\n");
337}
338
339u32 __weak omap2_prm_rmw_mod_reg_bits(u32 mask, u32 bits,
340 s16 module, s16 idx)
341{
342 WARN(1, "prm: omap2xxx/omap3xxx specific function called on non-omap2xxx/3xxx\n");
343 return 0;
344}
345
346u32 __weak omap2_prm_set_mod_reg_bits(u32 bits, s16 module, s16 idx)
347{
348 WARN(1, "prm: omap2xxx/omap3xxx specific function called on non-omap2xxx/3xxx\n");
349 return 0;
350}
351
352u32 __weak omap2_prm_clear_mod_reg_bits(u32 bits, s16 module, s16 idx)
353{
354 WARN(1, "prm: omap2xxx/omap3xxx specific function called on non-omap2xxx/3xxx\n");
355 return 0;
356}
357
358u32 __weak omap2_prm_read_mod_bits_shift(s16 domain, s16 idx, u32 mask)
359{
360 WARN(1, "prm: omap2xxx/omap3xxx specific function called on non-omap2xxx/3xxx\n");
361 return 0;
362}
363
364int __weak omap2_prm_is_hardreset_asserted(s16 prm_mod, u8 shift)
365{
366 WARN(1, "prm: omap2xxx/omap3xxx specific function called on non-omap2xxx/3xxx\n");
367 return 0;
368}
369
370int __weak omap2_prm_assert_hardreset(s16 prm_mod, u8 shift)
371{
372 WARN(1, "prm: omap2xxx/omap3xxx specific function called on non-omap2xxx/3xxx\n");
373 return 0;
374}
375
376int __weak omap2_prm_deassert_hardreset(s16 prm_mod, u8 rst_shift,
377 u8 st_shift)
378{
379 WARN(1, "prm: omap2xxx/omap3xxx specific function called on non-omap2xxx/3xxx\n");
380 return 0;
381}
382