}
EXPORT_SYMBOL_GPL(gpiod_put_array);
-static int gpio_stub_drv_probe(struct device *dev)
-{
- /*
- * The DT node of some GPIO chips have a "compatible" property, but
- * never have a struct device added and probed by a driver to register
- * the GPIO chip with gpiolib. In such cases, fw_devlink=on will cause
- * the consumers of the GPIO chip to get probe deferred forever because
- * they will be waiting for a device associated with the GPIO chip
- * firmware node to get added and bound to a driver.
- *
- * To allow these consumers to probe, we associate the struct
- * gpio_device of the GPIO chip with the firmware node and then simply
- * bind it to this stub driver.
- */
- return 0;
-}
-
+/*
+ * The DT node of some GPIO chips have a "compatible" property, but
+ * never have a struct device added and probed by a driver to register
+ * the GPIO chip with gpiolib. In such cases, fw_devlink=on will cause
+ * the consumers of the GPIO chip to get probe deferred forever because
+ * they will be waiting for a device associated with the GPIO chip
+ * firmware node to get added and bound to a driver.
+ *
+ * To allow these consumers to probe, we associate the struct
+ * gpio_device of the GPIO chip with the firmware node and then simply
+ * bind it to this stub driver.
+ */
static struct device_driver gpio_stub_drv = {
.name = "gpio_stub_drv",
.bus = &gpio_bus_type,
- .probe = gpio_stub_drv_probe,
};
static int __init gpiolib_dev_init(void)