diff options
| author | Haneen Mohammed <hamohammed.sa@gmail.com> | 2015-03-17 08:37:36 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-18 13:16:36 +0300 |
| commit | 41f06c619a302fa386e4d784c8ceed250d4c3754 (patch) | |
| tree | 919f50048c3924d84ca0d195ee67369263fccead /scripts/patch-kernel | |
| parent | 92371df8a9b70735b63075bb1f8a7480488d748e (diff) | |
| download | linux-41f06c619a302fa386e4d784c8ceed250d4c3754.tar.xz | |
Staging: ft1000: replace pr_err with dev_err
This patch replace pr_err with dev_err, when appropriate device
structure is found.
Issue found using the following Coccinelle script:
@r exists@
identifier f, s, i;
position p;
@@
f(...,struct s *i,...) {
<+...
when != i == NULL
pr_err@p(...);
...+>
}
@rr@
identifier r.s, fld;
@@
struct s {
...
struct device *fld;
...
};
@@
identifier r.i, rr.fld;
position r.p;
@@
-pr_err@p
+dev_err
(
+ i->fld,
...)
Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
