1. 20 Apr, 2010 5 commits
    • Jonathan Corbet's avatar
      viafb: Unify duplicated set_bpp() code · f1b99aa9
      Jonathan Corbet authored
      As suggested by Florian: make both mode-setting paths use the same code.
      
      Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: ScottFang@viatech.com.cn
      Cc: JosephChan@via.com.tw
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      f1b99aa9
    • Jonathan Corbet's avatar
      viafb: Retain GEMODE reserved bits · 9ca43cf4
      Jonathan Corbet authored
      Commit c3e25673 (viafb: 2D engine rewrite)
      changed the setting of the GEMODE register so that the reserved bits are no
      longer preserved.  Fix that; at the same time, move this code to its own
      function and restore the use of symbolic constants.
      
      Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: ScottFang@viatech.com.cn
      Cc: JosephChan@via.com.tw
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      9ca43cf4
    • Jonathan Corbet's avatar
      viafb: Unmap the frame buffer on initialization error · 1b1f8cd2
      Jonathan Corbet authored
      This was part of Harald's "make viafb a first-class citizen using
      pci_driver" patch, but somehow got dropped when that patch went into
      mainline.
      
      Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: ScottFang@viatech.com.cn
      Cc: JosephChan@via.com.tw
      Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
      1b1f8cd2
    • Harald Welte's avatar
      viafb: use proper pci config API · b72a5070
      Harald Welte authored
      This patch alters viafb to use the proper Linux in-kernel API to access
      PCI configuration space, rather than poking at I/O ports by itself.
      
      Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: ScottFang@viatech.com.cn
      Cc: JosephChan@via.com.tw
      Signed-off-by: default avatarHarald Welte <HaraldWelte@viatech.com>
      b72a5070
    • Harald Welte's avatar
      viafb: Fix various resource leaks during module_init() · 109771a6
      Harald Welte authored
      The current code executed from module_init() in viafb does not have
      proper error checking and [partial] resoure release paths in case
      an error happens half way through driver initialization.
      
      This patch adresses the most obvious of those issues, such as a
      leftover i2c bus if module_init (and thus module load) fails.
      
      [jc: fixed merge conflicts]
      [jc: also restored -ENOMEM return on ioremap() fail]
      
      Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: ScottFang@viatech.com.cn
      Cc: JosephChan@via.com.tw
      Signed-off-by: default avatarHarald Welte <HaraldWelte@viatech.com>
      109771a6
  2. 30 Mar, 2010 6 commits
  3. 29 Mar, 2010 29 commits