diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-07-20 03:18:21 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-07-20 03:18:21 -0400 |
commit | 5440711073157576eb4658c19019b66b25140860 (patch) | |
tree | fa65de485c82478b9ace19b67410bc5630e1788e /drivers/sh | |
parent | e3f805e897320c3c25d7d5f67e0fb59c5a7199bc (diff) |
sh: pfc: Prefer DRV_NAME over KBUILD_MODNAME.
While this code is still being shuffled around the KBUILD_MODNAME value
isn't particularly useful, switch to something a bit more useful.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/sh')
-rw-r--r-- | drivers/sh/pfc/pinctrl.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/sh/pfc/pinctrl.c b/drivers/sh/pfc/pinctrl.c index 45e80ee70766..900afa5f4069 100644 --- a/drivers/sh/pfc/pinctrl.c +++ b/drivers/sh/pfc/pinctrl.c | |||
@@ -7,7 +7,9 @@ | |||
7 | * License. See the file "COPYING" in the main directory of this archive | 7 | * License. See the file "COPYING" in the main directory of this archive |
8 | * for more details. | 8 | * for more details. |
9 | */ | 9 | */ |
10 | #define pr_fmt(fmt) "sh_pfc " KBUILD_MODNAME ": " fmt | 10 | #define DRV_NAME "pinctrl-sh_pfc" |
11 | |||
12 | #define pr_fmt(fmt) DRV_NAME " " KBUILD_MODNAME ": " fmt | ||
11 | 13 | ||
12 | #include <linux/init.h> | 14 | #include <linux/init.h> |
13 | #include <linux/module.h> | 15 | #include <linux/module.h> |
@@ -265,12 +267,12 @@ static struct pinconf_ops sh_pfc_pinconf_ops = { | |||
265 | }; | 267 | }; |
266 | 268 | ||
267 | static struct pinctrl_gpio_range sh_pfc_gpio_range = { | 269 | static struct pinctrl_gpio_range sh_pfc_gpio_range = { |
268 | .name = KBUILD_MODNAME, | 270 | .name = DRV_NAME, |
269 | .id = 0, | 271 | .id = 0, |
270 | }; | 272 | }; |
271 | 273 | ||
272 | static struct pinctrl_desc sh_pfc_pinctrl_desc = { | 274 | static struct pinctrl_desc sh_pfc_pinctrl_desc = { |
273 | .name = KBUILD_MODNAME, | 275 | .name = DRV_NAME, |
274 | .owner = THIS_MODULE, | 276 | .owner = THIS_MODULE, |
275 | .pctlops = &sh_pfc_pinctrl_ops, | 277 | .pctlops = &sh_pfc_pinctrl_ops, |
276 | .pmxops = &sh_pfc_pinmux_ops, | 278 | .pmxops = &sh_pfc_pinmux_ops, |
@@ -448,13 +450,13 @@ static struct platform_driver sh_pfc_pinctrl_driver = { | |||
448 | .probe = sh_pfc_pinctrl_probe, | 450 | .probe = sh_pfc_pinctrl_probe, |
449 | .remove = __devexit_p(sh_pfc_pinctrl_remove), | 451 | .remove = __devexit_p(sh_pfc_pinctrl_remove), |
450 | .driver = { | 452 | .driver = { |
451 | .name = KBUILD_MODNAME, | 453 | .name = DRV_NAME, |
452 | .owner = THIS_MODULE, | 454 | .owner = THIS_MODULE, |
453 | }, | 455 | }, |
454 | }; | 456 | }; |
455 | 457 | ||
456 | static struct platform_device sh_pfc_pinctrl_device = { | 458 | static struct platform_device sh_pfc_pinctrl_device = { |
457 | .name = KBUILD_MODNAME, | 459 | .name = DRV_NAME, |
458 | .id = -1, | 460 | .id = -1, |
459 | }; | 461 | }; |
460 | 462 | ||