diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-05-31 17:05:11 +0900 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-05-31 12:39:31 +0200 |
commit | 4109508a85f5f51b3dcb1fb53674eec2beac60e1 (patch) | |
tree | 4fe6003778171a989791afb0f0f299a0e08675d3 /drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c | |
parent | 7d36b2451ac524c672f35000f869000dbdb3ca21 (diff) | |
download | blackbird-obmc-linux-4109508a85f5f51b3dcb1fb53674eec2beac60e1.tar.gz blackbird-obmc-linux-4109508a85f5f51b3dcb1fb53674eec2beac60e1.zip |
pinctrl: uniphier: set pinctrl_desc name in common probe function
Every SoC driver sets the same name for struct pinctrl_desc and
platform_driver. The common probe function can set desc->name
instead of duplicating strings in each SoC driver.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c')
-rw-r--r-- | drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c index 5353ce4f611a..1e7bacd81785 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c @@ -19,8 +19,6 @@ #include "pinctrl-uniphier.h" -#define DRIVER_NAME "uniphier-ld4-pinctrl" - static const struct pinctrl_pin_desc uniphier_ld4_pins[] = { UNIPHIER_PINCTRL_PIN(0, "EA1", UNIPHIER_PIN_IECTRL_NONE, 8, UNIPHIER_PIN_DRV_4_8, @@ -858,7 +856,6 @@ static struct uniphier_pinctrl_socdata uniphier_ld4_pindata = { }; static struct pinctrl_desc uniphier_ld4_pinctrl_desc = { - .name = DRIVER_NAME, .pins = uniphier_ld4_pins, .npins = ARRAY_SIZE(uniphier_ld4_pins), }; @@ -878,7 +875,7 @@ MODULE_DEVICE_TABLE(of, uniphier_ld4_pinctrl_match); static struct platform_driver uniphier_ld4_pinctrl_driver = { .probe = uniphier_ld4_pinctrl_probe, .driver = { - .name = DRIVER_NAME, + .name = "uniphier-ld4-pinctrl", .of_match_table = uniphier_ld4_pinctrl_match, }, }; |