mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
pc_nic_drv: implement gpiod_get_optional() as dummy
This commit is contained in:
@@ -407,6 +407,14 @@ struct gpio_desc * devm_gpiod_get_optional(struct device * dev, const char * con
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#include <linux/gpio/consumer.h>
|
||||
|
||||
struct gpio_desc * __must_check gpiod_get_optional(struct device * dev,const char * con_id,enum gpiod_flags flags)
|
||||
{
|
||||
lx_emul_trace(__func__);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#include <linux/clk.h>
|
||||
|
||||
struct clk *devm_clk_get_optional_enabled(struct device *dev, const char *id)
|
||||
|
||||
@@ -384,14 +384,6 @@ int gnet_stats_copy_queue(struct gnet_dump * d,struct gnet_stats_queue __percpu
|
||||
}
|
||||
|
||||
|
||||
#include <linux/gpio/consumer.h>
|
||||
|
||||
struct gpio_desc * __must_check gpiod_get_optional(struct device * dev,const char * con_id,enum gpiod_flags flags)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/gpio/consumer.h>
|
||||
|
||||
int gpiod_get_value_cansleep(const struct gpio_desc * desc)
|
||||
|
||||
@@ -392,14 +392,6 @@ int gnet_stats_copy_queue(struct gnet_dump * d,struct gnet_stats_queue __percpu
|
||||
}
|
||||
|
||||
|
||||
#include <linux/gpio/consumer.h>
|
||||
|
||||
struct gpio_desc * __must_check gpiod_get_optional(struct device * dev,const char * con_id,enum gpiod_flags flags)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/gpio/consumer.h>
|
||||
|
||||
int gpiod_get_value_cansleep(const struct gpio_desc * desc)
|
||||
|
||||
Reference in New Issue
Block a user