diff options
author | Simon Horman <horms+renesas@verge.net.au> | 2013-03-15 07:16:28 +0100 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-03-15 07:16:28 +0100 |
commit | 47f4e0c1c87f34bf1fc74b8935a37d229a147946 (patch) | |
tree | 29c7fe96a5dbc8870e75ecbb027e39682a5fcbab /drivers/pinctrl | |
parent | a9324f6b8394ef514098ded280e7017b4204fb90 (diff) | |
parent | bf4d7be57ba9040347065f48a60f895a254f6e28 (diff) | |
download | kernel_goldelico_gta04-47f4e0c1c87f34bf1fc74b8935a37d229a147946.zip kernel_goldelico_gta04-47f4e0c1c87f34bf1fc74b8935a37d229a147946.tar.gz kernel_goldelico_gta04-47f4e0c1c87f34bf1fc74b8935a37d229a147946.tar.bz2 |
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl into pinmux-base
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/pinconf.c | 2 | ||||
-rw-r--r-- | drivers/pinctrl/pinconf.h | 2 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-abx500.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinconf.c b/drivers/pinctrl/pinconf.c index 8aefd28..dae927f 100644 --- a/drivers/pinctrl/pinconf.c +++ b/drivers/pinctrl/pinconf.c @@ -622,7 +622,7 @@ static const struct file_operations pinconf_dbg_pinname_fops = { static int pinconf_dbg_state_print(struct seq_file *s, void *d) { if (strlen(dbg_state_name)) - seq_printf(s, "%s\n", dbg_pinname); + seq_printf(s, "%s\n", dbg_state_name); else seq_printf(s, "No pin state set\n"); return 0; diff --git a/drivers/pinctrl/pinconf.h b/drivers/pinctrl/pinconf.h index 1f7113e..92c7267 100644 --- a/drivers/pinctrl/pinconf.h +++ b/drivers/pinctrl/pinconf.h @@ -90,7 +90,7 @@ static inline void pinconf_init_device_debugfs(struct dentry *devroot, * pin config. */ -#ifdef CONFIG_GENERIC_PINCONF +#if defined(CONFIG_GENERIC_PINCONF) && defined(CONFIG_DEBUG_FS) void pinconf_generic_dump_pin(struct pinctrl_dev *pctldev, struct seq_file *s, unsigned pin); diff --git a/drivers/pinctrl/pinctrl-abx500.c b/drivers/pinctrl/pinctrl-abx500.c index e8abc3c..0cf3fa4 100644 --- a/drivers/pinctrl/pinctrl-abx500.c +++ b/drivers/pinctrl/pinctrl-abx500.c @@ -422,7 +422,7 @@ static u8 abx500_get_mode(struct pinctrl_dev *pctldev, struct gpio_chip *chip, } /* check if pin use AlternateFunction register */ - if ((af.alt_bit1 == UNUSED) && (af.alt_bit1 == UNUSED)) + if ((af.alt_bit1 == UNUSED) && (af.alt_bit2 == UNUSED)) return mode; /* * if pin GPIOSEL bit is set and pin supports alternate function, |