2011-06-07 20:52:38

by Hartley Sweeten

[permalink] [raw]
Subject: [PATCH] gpio-ep93xx: fix pr_fmt output

With this driver now being moved from arch/arm/mach-ep93xx/gpio.c to
drivers/gpio/gpio-ep93xx.c the prefix "ep93xx" is now redundant in the
pr_* output. Using KBUILD_MODNAME is sufficient.

Signed-off-by: H Hartley Sweeten <[email protected]>
Cc: Grant Likely <[email protected]>

---

diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c
index c33c9a8..3d427b9 100644
--- a/drivers/gpio/gpio-ep93xx.c
+++ b/drivers/gpio/gpio-ep93xx.c
@@ -11,7 +11,7 @@
* published by the Free Software Foundation.
*/

-#define pr_fmt(fmt) "ep93xx " KBUILD_MODNAME ": " fmt
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/init.h>
#include <linux/module.h>


2011-06-07 23:14:04

by Grant Likely

[permalink] [raw]
Subject: Re: [PATCH] gpio-ep93xx: fix pr_fmt output

On Tue, Jun 07, 2011 at 01:52:01PM -0700, H Hartley Sweeten wrote:
> With this driver now being moved from arch/arm/mach-ep93xx/gpio.c to
> drivers/gpio/gpio-ep93xx.c the prefix "ep93xx" is now redundant in the
> pr_* output. Using KBUILD_MODNAME is sufficient.
>
> Signed-off-by: H Hartley Sweeten <[email protected]>
> Cc: Grant Likely <[email protected]>

Applied, thanks.

g.

>
> ---
>
> diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c
> index c33c9a8..3d427b9 100644
> --- a/drivers/gpio/gpio-ep93xx.c
> +++ b/drivers/gpio/gpio-ep93xx.c
> @@ -11,7 +11,7 @@
> * published by the Free Software Foundation.
> */
>
> -#define pr_fmt(fmt) "ep93xx " KBUILD_MODNAME ": " fmt
> +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
>
> #include <linux/init.h>
> #include <linux/module.h>