OSDN Git Service

staging: most: hdm-usb: convert pr_warn() to dev_warn()
authorEva Rachel Retuya <eraretuya@gmail.com>
Tue, 20 Sep 2016 03:09:05 +0000 (11:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:59:45 +0000 (13:59 +0200)
commit520a28443fb2f28a663053feb4431c0083268d75
tree14c9542cbbe359b68946efec59d20b7c68d6fe09
parent0ea5f7c6808b4ecfc5b045d9cab81803f27670fb
staging: most: hdm-usb: convert pr_warn() to dev_warn()

Replace pr_warn() call with its respective dev_warn() counterpart.
Semantic patch used to detect and apply the transformation:

@a@
identifier dev;
expression E;
@@

struct device *dev = E;
<+... when != dev == NULL
- pr_warn(
+ dev_warn(dev,
...);
...+>

Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/hdm-usb/hdm_usb.c