]> git.karo-electronics.de Git - linux-beck.git/commit
staging: mt29f_spinand: Replacing pr_info with dev_info after the call to devm_kzalloc
authorG Pooja Shamili <poojashamili@gmail.com>
Fri, 11 Mar 2016 23:58:54 +0000 (05:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:14:06 +0000 (22:14 -0800)
commit8d4cd9c8e2596e28cb9e13e2e20a493cb082283a
treebe026d9f0c0d01e5040ec00fb8bdf982b89083c2
parentf75baf8d90bf45221694a1a5f0e5acdcb3245760
staging: mt29f_spinand: Replacing pr_info with dev_info after the call to devm_kzalloc

The function devm_kzalloc has a first argument of type struct device *.
This is the type of argument required by printing functions such as
dev_info, dev_err, etc. Thus, functions like pr_info should not normally
be used after a call to devm_kzalloc. Thus, all pr_info occurances are
replaced with dev_info function calls.

This was done using Coccinelle, the patch being:
@@
expression E1,E2;
expression list args;
@@

E1 = devm_kzalloc(E2, ...);
<...
- pr_info(
+ dev_info(E2,
args);
...>

Signed-off-by: G Pooja Shamili <poojashamili@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt29f_spinand/mt29f_spinand.c