]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
coresight: Convert pr_warn to dev_warn for obsolete bindings
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Thu, 29 Aug 2019 20:28:32 +0000 (14:28 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2019 20:01:16 +0000 (22:01 +0200)
We warn the users of obsolete bindings in the DT for coresight replicator
and funnel drivers. However we use pr_warn_once() which doesn't give a clue
about which device it is bound to. Let us use dev_warn_once() to give the
context.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20190829202842.580-8-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-funnel.c
drivers/hwtracing/coresight/coresight-replicator.c

index fa97cb9ab4f9dc6ba8e980fbcace0294e3a309f8..84ca30f4e5ece6b67831c6da3f888b035cae9182 100644 (file)
@@ -192,7 +192,7 @@ static int funnel_probe(struct device *dev, struct resource *res)
 
        if (is_of_node(dev_fwnode(dev)) &&
            of_device_is_compatible(dev->of_node, "arm,coresight-funnel"))
-               pr_warn_once("Uses OBSOLETE CoreSight funnel binding\n");
+               dev_warn_once(dev, "Uses OBSOLETE CoreSight funnel binding\n");
 
        desc.name = coresight_alloc_device_name(&funnel_devs, dev);
        if (!desc.name)
index b7d6d59d56db2a59e9b25ec4b9bdf8643edfcf0f..b29ba640eb25b94cd3e63f0b199ddf71574c94ce 100644 (file)
@@ -184,7 +184,8 @@ static int replicator_probe(struct device *dev, struct resource *res)
 
        if (is_of_node(dev_fwnode(dev)) &&
            of_device_is_compatible(dev->of_node, "arm,coresight-replicator"))
-               pr_warn_once("Uses OBSOLETE CoreSight replicator binding\n");
+               dev_warn_once(dev,
+                             "Uses OBSOLETE CoreSight replicator binding\n");
 
        desc.name = coresight_alloc_device_name(&replicator_devs, dev);
        if (!desc.name)