Commit 3ca3fab5 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

removed error reporting from gpio_10389 because it won't exist

parent eec87189
...@@ -288,8 +288,6 @@ static int get_enable(struct device *dev, int chn); ...@@ -288,8 +288,6 @@ static int get_enable(struct device *dev, int chn);
static int set_enable(struct device *dev, int chn, int enable); static int set_enable(struct device *dev, int chn, int enable);
static int get_pgood(struct device *dev, int chn); static int get_pgood(struct device *dev, int chn);
static struct device * find_device_by_i2c_addr(int address);
static int i2c_addr_gpiochip_match(struct gpio_chip *chip, void *data);
int gpio_10389_ctrl(struct device *dev, int value); int gpio_10389_ctrl(struct device *dev, int value);
/* /*
...@@ -657,14 +655,6 @@ int gpio_10389_ctrl(struct device *dev, int value){ ...@@ -657,14 +655,6 @@ int gpio_10389_ctrl(struct device *dev, int value){
int i, res; int i, res;
int val = 0; int val = 0;
struct gpio_chip *chip;
int tmp_addr = GPIO_10389_U4_ADDR;
chip = gpiochip_find(&tmp_addr, i2c_addr_gpiochip_match);
if (chip==NULL) {
pr_err("10389 is not connected\n");
return -ENODEV;
}
mutex_lock(&gpio_10389_lock); mutex_lock(&gpio_10389_lock);
for(i=16;i<20;i++){ for(i=16;i<20;i++){
if ((value>>(i-8))&0x1){ if ((value>>(i-8))&0x1){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment