File tree Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -981,11 +981,6 @@ static int of_gpiochip_add_pin_range(struct gpio_chip *chip)
981
981
if (!np )
982
982
return 0 ;
983
983
984
- if (!of_property_read_bool (np , "gpio-ranges" ) &&
985
- chip -> of_gpio_ranges_fallback ) {
986
- return chip -> of_gpio_ranges_fallback (chip , np );
987
- }
988
-
989
984
group_names = of_find_property (np , group_names_propname , NULL );
990
985
991
986
for (;; index ++ ) {
Original file line number Diff line number Diff line change @@ -525,18 +525,6 @@ struct gpio_chip {
525
525
*/
526
526
int (* of_xlate )(struct gpio_chip * gc ,
527
527
const struct of_phandle_args * gpiospec , u32 * flags );
528
-
529
- /**
530
- * @of_gpio_ranges_fallback:
531
- *
532
- * Optional hook for the case that no gpio-ranges property is defined
533
- * within the device tree node "np" (usually DT before introduction
534
- * of gpio-ranges). So this callback is helpful to provide the
535
- * necessary backward compatibility for the pin ranges.
536
- */
537
- int (* of_gpio_ranges_fallback )(struct gpio_chip * gc ,
538
- struct device_node * np );
539
-
540
528
#endif /* CONFIG_OF_GPIO */
541
529
};
542
530
You can’t perform that action at this time.
0 commit comments