1. 10 Mar, 2011 20 commits
  2. 09 Mar, 2011 16 commits
  3. 08 Mar, 2011 4 commits
    • Wolfram Sang's avatar
      i2c-eg20t: include slab.h for memory allocations · 6dbc2f35
      Wolfram Sang authored
      Fixes (with v2.6.38-rc3/parisc/parisc-allmodconfig):
        src/drivers/i2c/busses/i2c-eg20t.c:720: error: implicit declaration of function 'kzalloc'
        src/drivers/i2c/busses/i2c-eg20t.c:790: error: implicit declaration of function 'kfree'
      Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
      Cc: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
      6dbc2f35
    • Grant Likely's avatar
      i2c-ocores: Fix pointer type mismatch error · 12c38323
      Grant Likely authored
      ocores_i2c_of_probe needs to use a const __be32 type for handing
      device tree property values.  This patch fixed the following build
      warning:
      
       CC      drivers/i2c/busses/i2c-ocores.o
        drivers/i2c/busses/i2c-ocores.c: In function 'ocores_i2c_of_probe':
        drivers/i2c/busses/i2c-ocores.c:254: warning: assignment discards qualifiers from pointer target type
        drivers/i2c/busses/i2c-ocores.c:261: warning: assignment discards qualifiers from pointer target type
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      Cc: Peter Korsgaard <jacmet@sunsite.dk>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Cc: linux-i2c@vger.kernel.org
      Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
      12c38323
    • Ohad Ben-Cohen's avatar
      mmc: fix CONFIG_MMC_UNSAFE_RESUME regression · bad3baba
      Ohad Ben-Cohen authored
      30201e7f ("mmc: skip detection of nonremovable cards on rescan")
      allowed skipping detection of nonremovable cards on mmc_rescan().
      The intention was to only skip detection of hardwired cards that
      cannot be removed, so make sure this is indeed the case by directly
      checking for (lack of) MMC_CAP_NONREMOVABLE, instead of using
      mmc_card_is_removable(), which is overloaded with
      CONFIG_MMC_UNSAFE_RESUME semantics.
      
      The user-visible symptom of the bug this patch fixes is that no
      "mmc: card XXXX removed" message appears in dmesg when a card is
      removed and CONFIG_MMC_UNSAFE_RESUME=y.
      Reported-and-tested-by: default avatarDmitry Shmidt <dimitrysh@google.com>
      Reported-and-tested-by: default avatarMaxim Levitsky <maximlevitsky@gmail.com>
      Signed-off-by: default avatarOhad Ben-Cohen <ohad@wizery.com>
      Signed-off-by: default avatarChris Ball <cjb@laptop.org>
      bad3baba
    • Al Viro's avatar
      unfuck proc_sysctl ->d_compare() · dfef6dcd
      Al Viro authored
      a) struct inode is not going to be freed under ->d_compare();
      however, the thing PROC_I(inode)->sysctl points to just might.
      Fortunately, it's enough to make freeing that sucker delayed,
      provided that we don't step on its ->unregistering, clear
      the pointer to it in PROC_I(inode) before dropping the reference
      and check if it's NULL in ->d_compare().
      
      b) I'm not sure that we *can* walk into NULL inode here (we recheck
      dentry->seq between verifying that it's still hashed / fetching
      dentry->d_inode and passing it to ->d_compare() and there's no
      negative hashed dentries in /proc/sys/*), but if we can walk into
      that, we really should not have ->d_compare() return 0 on it!
      Said that, I really suspect that this check can be simply killed.
      Nick?
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      dfef6dcd