1. 22 12月, 2015 1 次提交
    • A
      mmc: dw_mmc: use resource_size_t to store physical address · 260b3164
      Arnd Bergmann 提交于
      The dw_mmc driver stores the physical address of the MMIO registers
      in a pointer, which requires the use of type casts, and is actually
      broken if anyone ever has this device on a 32-bit SoC in registers
      above 4GB. Gcc warns about this possibility when the driver is built
      with ARM LPAE enabled:
      
      mmc/host/dw_mmc.c: In function 'dw_mci_edmac_start_dma':
      mmc/host/dw_mmc.c:702:17: warning: cast from pointer to integer of different size
        cfg.dst_addr = (dma_addr_t)(host->phy_regs + fifo_offset);
                       ^
      mmc/host/dw_mmc-pltfm.c: In function 'dw_mci_pltfm_register':
      mmc/host/dw_mmc-pltfm.c:63:19: warning: cast to pointer from integer of different size
        host->phy_regs = (void *)(regs->start);
      
      This changes the code to use resource_size_t, which gets rid of the
      warning, the bug and the useless casts.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJaehoon Chung <jh80.chung@samsung.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      260b3164
  2. 26 10月, 2015 1 次提交
  3. 26 11月, 2014 1 次提交
  4. 09 9月, 2014 3 次提交
  5. 27 2月, 2014 1 次提交
  6. 26 2月, 2014 1 次提交
  7. 26 9月, 2013 1 次提交
  8. 25 8月, 2013 1 次提交
  9. 06 7月, 2013 3 次提交
  10. 27 6月, 2013 2 次提交
  11. 27 5月, 2013 1 次提交
  12. 26 1月, 2013 1 次提交
  13. 04 1月, 2013 1 次提交
    • G
      Drivers: mmc: remove __dev* attributes. · 4e608e4e
      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, 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>
      Cc: Chris Ball <cjb@laptop.org>
      Cc: Tony Prisk <linux@prisktech.co.nz>
      Cc: Will Newton <will.newton@imgtec.com>
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
      Cc: Thomas Abraham <thomas.abraham@linaro.org>
      Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
      Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4e608e4e
  14. 07 12月, 2012 2 次提交
  15. 29 11月, 2012 2 次提交
  16. 08 11月, 2012 2 次提交
  17. 03 10月, 2012 5 次提交
  18. 05 9月, 2012 1 次提交
  19. 26 3月, 2012 1 次提交