diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-05-12 14:01:04 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-05-20 17:27:04 +0200 |
commit | 168755ebb11e8bc17f2c12c42534adaf003a7d7e (patch) | |
tree | 6bdb68f583a9210970b10e95c188e8f19c98fca5 /drivers | |
parent | 10bbc48d7a045c022a54f637c0c6b72f0e38b519 (diff) | |
download | linux-168755ebb11e8bc17f2c12c42534adaf003a7d7e.tar.gz linux-168755ebb11e8bc17f2c12c42534adaf003a7d7e.tar.bz2 linux-168755ebb11e8bc17f2c12c42534adaf003a7d7e.zip |
mfd: Silence an lm3533 gcc warning
This is supposed to be umode_t. It causes a GCC warning:
drivers/mfd/lm3533-core.c:440:2: warning: initialization from incompatible pointer type [enabled by default]
drivers/mfd/lm3533-core.c:440:2: warning: (near initialization for ‘lm3533_attribute_group.is_visible’) [enabled by default]
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/lm3533-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/lm3533-core.c b/drivers/mfd/lm3533-core.c index d11c891e4a4d..1627472ecc0d 100644 --- a/drivers/mfd/lm3533-core.c +++ b/drivers/mfd/lm3533-core.c @@ -359,7 +359,7 @@ static struct attribute *lm3533_attributes[] = { #define to_dev_attr(_attr) \ container_of(_attr, struct device_attribute, attr) -static mode_t lm3533_attr_is_visible(struct kobject *kobj, +static umode_t lm3533_attr_is_visible(struct kobject *kobj, struct attribute *attr, int n) { struct device *dev = container_of(kobj, struct device, kobj); |