1. 13 9月, 2012 18 次提交
  2. 12 9月, 2012 9 次提交
    • P
      ARM: OMAP: unwrap strings · 7852ec05
      Paul Walmsley 提交于
      Find and unwrap wrapped strings in the style:
      
      	pr_debug("clockdomain: hardware cannot set/clear wake up of "
      		 "%s when %s wakes up\n", clkdm1->name, clkdm2->name);
      
      Keeping these strings contiguous seems to be the current Linux kernel
      policy.
      
      The offending lines were found with the following command:
      
          pcregrep -rnM '"\s*$\s*"' arch/arm/*omap*
      
      While here, some messages have been clarified, some pr_warning(
      ... calls have been converted to pr_warn( ..., and some printk(KERN_*
      ... have been converted to pr_*.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      7852ec05
    • P
      ARM: OMAP: clean up some smatch warnings, fix some printk(KERN_ERR ... · a032d33b
      Paul Walmsley 提交于
      Resolve the following warnings from smatch:
      
      arch/arm/mach-omap2/gpmc.c:282 gpmc_cs_set_timings() info: why not propagate 'div' from gpmc_cs_calc_divider() instead of -1?
      arch/arm/mach-omap2/serial.c:328 omap_serial_init_port() error: 'pdev' dereferencing possible ERR_PTR()
      arch/arm/mach-omap2/timer.c:213 omap2_gp_clockevent_init() Error invalid range 4096 to -1
      arch/arm/mach-omap2/gpio.c:63 omap2_gpio_dev_init() warn: possible memory leak of 'pdata'
      arch/arm/mach-omap2/omap_hwmod.c:1478 _assert_hardreset() warn: assigning -22 to unsigned variable 'ret'
      arch/arm/mach-omap2/omap_hwmod.c:1487 _assert_hardreset() warn: 4294963201 is more than 255 (max '(ret)' can be) so this is always the same.
      arch/arm/mach-omap2/omap_hwmod.c:1545 _read_hardreset() warn: assigning -22 to unsigned variable 'ret'
      arch/arm/mach-omap2/omap_hwmod.c:1554 _read_hardreset() warn: 4294963201 is more than 255 (max '(ret)' can be) so this is always the same.
      arch/arm/mach-omap2/dpll3xxx.c:629 omap3_clkoutx2_recalc() error: we previously assumed 'pclk' could be null (see line 627)
      arch/arm/mach-omap2/board-n8x0.c:422 n8x0_mmc_late_init() Error invalid range 14 to 13
      arch/arm/mach-omap1/leds-h2p2-debug.c:71 h2p2_dbg_leds_event() error: potentially derefencing uninitialized 'fpga'.
      arch/arm/plat-omap/mux.c:79 omap_cfg_reg() Error invalid range 4096 to -1
      
      Thanks to Tony Lindgren <tony@atomide.com> for pointing out that BUG()
      can be disabled.  The changes in the first version that removed the
      subsequent return() after BUG() states have been dropped.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      Cc: Tony Lindgren <tony@atomide.com>
      a032d33b
    • P
      ARM: OMAP2+: clean up PRCM sections of the Makefile · df47adb8
      Paul Walmsley 提交于
      Clean up the PRCM sections of the Makefile; this saves a few lines.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      df47adb8
    • P
      ARM: OMAP2+: clean up OMAP clock Makefile sections · 9afe4eea
      Paul Walmsley 提交于
      Clean up the OMAP clock code sections of the Makefile to save
      some lines of diff.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      9afe4eea
    • P
      ARM: OMAP2+: clean up OMAP4 PRM & sleep build directives in Makefile · f992dca0
      Paul Walmsley 提交于
      The prm44xx.o and sleep44xx.o build directives belong with the other
      PRCM- and PM-related build sections in the Makefile; move them there.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      f992dca0
    • P
      ARM: OMAP2+: move MPU INTCPS, secure monitor, SDRC build directives in Makefile · 445d12a9
      Paul Walmsley 提交于
      Move MPU INTCPS (interrupt controller) and secure monitor code build
      directives to their own Makefile sections, for clarity.  Coalesce
      SDRC-related Makefile directives into the SDRC Makefile section.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      445d12a9
    • P
      ARM: OMAP2+: clean up omap_hwmod.o build directives in Makefile · fcbde335
      Paul Walmsley 提交于
      Move the omap_hwmod_common_data.o build directive down to the hwmod
      data Makefile section where it belongs.  Move the omap_hwmod.o build
      directive to the top 'Common support' line, since we have no separate
      hwmod code Makefile section, and it's currently needed for all OMAP2+.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      fcbde335
    • P
      ARM: OMAP2+: clean up whitespace in Makefile · 032c1bbe
      Paul Walmsley 提交于
      Convert spaces that should be tabs into tabs.  Fix another minor
      formatting issue.
      Signed-off-by: NPaul Walmsley <paul@pwsan.com>
      032c1bbe
    • T
      serial/8250: Limit the omap workarounds to omap1 · cdd86b27
      Tony Lindgren 提交于
      These workarounds do not apply for CONFIG_ARCH_OMAP2PLUS at all,
      so let's make it just CONFIG_ARCH_OMAP1.
      
      This is needed to for ARM common zImage changes for
      omap2+ to avoid including plat and mach headers.
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Acked-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      cdd86b27
  3. 11 9月, 2012 13 次提交