File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 92
92
93
93
struct tca6507_platform_data {
94
94
struct led_platform_data leds ;
95
- #ifdef CONFIG_GPIOLIB
96
- int gpio_base ;
97
- #endif
98
95
};
99
96
100
97
#define TCA6507_MAKE_GPIO 1
@@ -636,7 +633,7 @@ static int tca6507_probe_gpios(struct device *dev,
636
633
637
634
tca -> gpio .label = "gpio-tca6507" ;
638
635
tca -> gpio .ngpio = gpios ;
639
- tca -> gpio .base = pdata -> gpio_base ;
636
+ tca -> gpio .base = -1 ;
640
637
tca -> gpio .owner = THIS_MODULE ;
641
638
tca -> gpio .direction_output = tca6507_gpio_direction_output ;
642
639
tca -> gpio .set = tca6507_gpio_set_value ;
@@ -715,9 +712,6 @@ tca6507_led_dt_init(struct device *dev)
715
712
716
713
pdata -> leds .leds = tca_leds ;
717
714
pdata -> leds .num_leds = NUM_LEDS ;
718
- #ifdef CONFIG_GPIOLIB
719
- pdata -> gpio_base = -1 ;
720
- #endif
721
715
722
716
return pdata ;
723
717
}
You can’t perform that action at this time.
0 commit comments