greybus: loopback: convert pr_info to dev_err
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Mon, 14 Sep 2015 09:48:44 +0000 (10:48 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Sep 2015 04:35:59 +0000 (21:35 -0700)
This patch fixes and invalid use of pr_info() in favour of dev_err();

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c

index 338522a49f9d2d2d3465c0c6a4cb2fcf6cde55b1..a9b901fbeb5c475600144dcf19e51cb61f4105c3 100644 (file)
@@ -450,7 +450,7 @@ static int gb_loopback_transfer(struct gb_loopback *gb, u32 len)
                goto gb_error;
 
        if (memcmp(request->data, response->data, len)) {
-               pr_info("%s: Loopback Data doesn't match\n", __func__);
+               dev_err(&gb->connection->dev, "Loopback Data doesn't match\n");
                retval = -EREMOTEIO;
        }