1. 08 5月, 2010 1 次提交
  2. 28 4月, 2010 1 次提交
    • H
      viafb: rework the I2C support in the VIA framebuffer driver · 277d32a3
      Harald Welte 提交于
      This patch changes the way how the various I2C busses are used internally
      inside the viafb driver:  Previosuly, only a single i2c_adapter was created,
      even though two different hardware I2C busses are accessed: A structure member
      in a global variable was modified to indicate the bus to be used.
      
      Now, all existing hardware busses are registered with the i2c core, and the
      viafb_i2c_{read,write}byte[s]() function take the adapter number as function
      call parameter, rather than referring to the global structure member.
      
      [jc: even more painful merge with mainline changes ->2.6.34]
      [jc: painful merge with OLPC changes]
      
      Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: ScottFang@viatech.com.cn
      Cc: JosephChan@via.com.tw
      Signed-off-by: NHarald Welte <HaraldWelte@viatech.com>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      277d32a3
  3. 21 4月, 2010 3 次提交
    • J
      viafb: Unmap the frame buffer on initialization error · 1b1f8cd2
      Jonathan Corbet 提交于
      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: NJonathan Corbet <corbet@lwn.net>
      1b1f8cd2
    • H
      viafb: use proper pci config API · b72a5070
      Harald Welte 提交于
      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: NHarald Welte <HaraldWelte@viatech.com>
      b72a5070
    • H
      viafb: Fix various resource leaks during module_init() · 109771a6
      Harald Welte 提交于
      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: NHarald Welte <HaraldWelte@viatech.com>
      109771a6
  4. 13 3月, 2010 12 次提交
  5. 17 1月, 2010 2 次提交
  6. 18 12月, 2009 1 次提交
  7. 16 12月, 2009 1 次提交
  8. 23 9月, 2009 19 次提交