projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gpio: kill off set_irq_flags usage
[linux-block.git]
/
drivers
/
gpio
/
gpiolib-of.c
diff --git
a/drivers/gpio/gpiolib-of.c
b/drivers/gpio/gpiolib-of.c
index 9a0ec48a47375d18d4d6d17f98e379f30f8e9ec8..1e36ec5e2e0c0ce7babceaead2854c7343226315 100644
(file)
--- a/
drivers/gpio/gpiolib-of.c
+++ b/
drivers/gpio/gpiolib-of.c
@@
-136,7
+136,6
@@
static struct gpio_desc *of_get_gpio_hog(struct device_node *np,
{
struct device_node *chip_np;
enum of_gpio_flags xlate_flags;
{
struct device_node *chip_np;
enum of_gpio_flags xlate_flags;
- struct gpio_desc *desc;
struct gg_data gg_data = {
.flags = &xlate_flags,
};
struct gg_data gg_data = {
.flags = &xlate_flags,
};
@@
-193,9
+192,7
@@
static struct gpio_desc *of_get_gpio_hog(struct device_node *np,
if (name && of_property_read_string(np, "line-name", name))
*name = np->name;
if (name && of_property_read_string(np, "line-name", name))
*name = np->name;
- desc = gg_data.out_gpio;
-
- return desc;
+ return gg_data.out_gpio;
}
/**
}
/**
@@
-365,7
+362,7
@@
static void of_gpiochip_add_pin_range(struct gpio_chip *chip)
if (pinspec.args[2]) {
if (group_names) {
if (pinspec.args[2]) {
if (group_names) {
-
ret =
of_property_read_string_index(np,
+ of_property_read_string_index(np,
group_names_propname,
index, &name);
if (strlen(name)) {
group_names_propname,
index, &name);
if (strlen(name)) {