diff options
Diffstat (limited to 'drivers/mfd/sec-core.c')
| -rw-r--r-- | drivers/mfd/sec-core.c | 46 | 
1 files changed, 0 insertions, 46 deletions
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index b03edda56009..c2d0ed496959 100644 --- a/drivers/mfd/sec-core.c +++ b/drivers/mfd/sec-core.c @@ -24,22 +24,9 @@  #include <linux/mfd/samsung/s2mps14.h>  #include <linux/mfd/samsung/s2mps15.h>  #include <linux/mfd/samsung/s2mpu02.h> -#include <linux/mfd/samsung/s5m8763.h>  #include <linux/mfd/samsung/s5m8767.h>  #include <linux/regmap.h> -static const struct mfd_cell s5m8751_devs[] = { -	{ .name = "s5m8751-pmic", }, -	{ .name = "s5m-charger", }, -	{ .name = "s5m8751-codec", }, -}; - -static const struct mfd_cell s5m8763_devs[] = { -	{ .name = "s5m8763-pmic", }, -	{ .name = "s5m-rtc", }, -	{ .name = "s5m-charger", }, -}; -  static const struct mfd_cell s5m8767_devs[] = {  	{ .name = "s5m8767-pmic", },  	{ .name = "s5m-rtc", }, @@ -158,19 +145,6 @@ static bool s2mpu02_volatile(struct device *dev, unsigned int reg)  	}  } -static bool s5m8763_volatile(struct device *dev, unsigned int reg) -{ -	switch (reg) { -	case S5M8763_REG_IRQM1: -	case S5M8763_REG_IRQM2: -	case S5M8763_REG_IRQM3: -	case S5M8763_REG_IRQM4: -		return false; -	default: -		return true; -	} -} -  static const struct regmap_config sec_regmap_config = {  	.reg_bits = 8,  	.val_bits = 8, @@ -230,15 +204,6 @@ static const struct regmap_config s2mpu02_regmap_config = {  	.cache_type = REGCACHE_FLAT,  }; -static const struct regmap_config s5m8763_regmap_config = { -	.reg_bits = 8, -	.val_bits = 8, - -	.max_register = S5M8763_REG_LBCNFG2, -	.volatile_reg = s5m8763_volatile, -	.cache_type = REGCACHE_FLAT, -}; -  static const struct regmap_config s5m8767_regmap_config = {  	.reg_bits = 8,  	.val_bits = 8, @@ -348,9 +313,6 @@ static int sec_pmic_probe(struct i2c_client *i2c)  	case S2MPS15X:  		regmap = &s2mps15_regmap_config;  		break; -	case S5M8763X: -		regmap = &s5m8763_regmap_config; -		break;  	case S5M8767X:  		regmap = &s5m8767_regmap_config;  		break; @@ -375,14 +337,6 @@ static int sec_pmic_probe(struct i2c_client *i2c)  	pm_runtime_set_active(sec_pmic->dev);  	switch (sec_pmic->device_type) { -	case S5M8751X: -		sec_devs = s5m8751_devs; -		num_sec_devs = ARRAY_SIZE(s5m8751_devs); -		break; -	case S5M8763X: -		sec_devs = s5m8763_devs; -		num_sec_devs = ARRAY_SIZE(s5m8763_devs); -		break;  	case S5M8767X:  		sec_devs = s5m8767_devs;  		num_sec_devs = ARRAY_SIZE(s5m8767_devs);  |