Staging: emxx_udc: Replace custom printk macro ERR with dev_err or pr_err
authorHaneen Mohammed <hamohammed.sa@gmail.com>
Mon, 2 Mar 2015 18:37:38 +0000 (21:37 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 17:54:26 +0000 (09:54 -0800)
commit886892798c9d29d3bb32e6a6d24e09565d71659e
treeebf623665bc7f2713dea7577da65e29d597f38df
parentd45c4c654d12fee5122e2eead93e5766dfd2259f
Staging: emxx_udc: Replace custom printk macro ERR with dev_err or pr_err

This patch removes the use of custom printk macros ERR and replace it
with dev_err, or pr_err in the following cases:
- if no appropriate struct device *dev field where found for dev_err.
- or dev could be null eg. "dev_err(udc->dev" not possible inside "if
  (udc == null)"
Issue addressed by checkpatch.pl.

Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/emxx_udc/emxx_udc.c