1. 20 9月, 2013 1 次提交
  2. 04 1月, 2013 1 次提交
    • G
      Drivers: video: remove __dev* attributes. · 48c68c4f
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      __devinitconst, and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      48c68c4f
  3. 08 7月, 2012 1 次提交
    • E
      grvga: Fix error handling issues · 42eb317f
      Emil Goode 提交于
      This patch fixes two problems with the error handling in the
      grvga_probe function and simplifies it making the code
      easier to read.
      
      - If the call to grvga_parse_custom on line 370 fails we use
        the wrong label so that release_mem_region will be called
        without a call to request_mem_region being made.
      
      - If the call to ioremap on line 436 fails we should not try
        to call iounmap in the error handling code.
      
      This patch introduces the following changes:
      
      - Converts request_mem_region into its devm_ equivalent
        which simplifies the otherwise messy clean up code.
      
      - Changes the labels for correct error handling and their
        names to make the code easier to read.
      Signed-off-by: NEmil Goode <emilgoode@gmail.com>
      Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      42eb317f
  4. 04 1月, 2012 1 次提交
    • S
      grvga: fix section mismatch warnings · c5627f65
      Sam Ravnborg 提交于
      Fix following section mismatch warnings:
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x110): Section mismatch in reference from the function grvga_probe() to the function .init.text:grvga_parse_custom()
      The function __devinit grvga_probe() references
      a function __init grvga_parse_custom().
      If grvga_parse_custom is only used by grvga_probe then
      annotate grvga_parse_custom with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x1f8): Section mismatch in reference from the function grvga_probe() to the variable .init.data:grvga_fix
      The function __devinit grvga_probe() references
      a variable __initdata grvga_fix.
      If grvga_fix is only used by grvga_probe then
      annotate grvga_fix with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x204): Section mismatch in reference from the function grvga_probe() to the variable .init.data:grvga_fix
      The function __devinit grvga_probe() references
      a variable __initdata grvga_fix.
      If grvga_fix is only used by grvga_probe then
      annotate grvga_fix with a matching annotation.
      
      grvga_fix is used in a function annotated __devinit - so
      match this using a __devinitdata annotation on grvga_fix.
      
      grvga_parse_custom() is used in a function annotated
      __devinit - so match this by annotating grvga_parse_custom()
      with __devinit too.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Kristoffer Glembo <kristoffer@gaisler.com>
      Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
      c5627f65
  5. 13 7月, 2011 1 次提交