Converting pr_fmt from a simple define to use KBUILD_MODNAME added
some duplicate logging prefixes to existing uses.

Remove them.

Signed-off-by: Joe Perches <j...@perches.com>
---
 drivers/ptp/ptp_clock.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c
index 7eacc1c4b3b1..35d9e1aa6564 100644
--- a/drivers/ptp/ptp_clock.c
+++ b/drivers/ptp/ptp_clock.c
@@ -396,13 +396,13 @@ static int __init ptp_init(void)
 
        ptp_class = class_create(THIS_MODULE, "ptp");
        if (IS_ERR(ptp_class)) {
-               pr_err("ptp: failed to allocate class\n");
+               pr_err("failed to allocate class\n");
                return PTR_ERR(ptp_class);
        }
 
        err = alloc_chrdev_region(&ptp_devt, 0, MINORMASK + 1, "ptp");
        if (err < 0) {
-               pr_err("ptp: failed to allocate device region\n");
+               pr_err("failed to allocate device region\n");
                goto no_region;
        }
 
-- 
2.15.0

Reply via email to