staging: mt29f_spinand: Replacing pr_info with dev_info after the call to devm_kzalloc
Quoted 12 lines · pooja.shamili
The function
devm_kzallochas a first argument of type struct device *. This is the type of argument required by printing functions such asdev_info,dev_err, etc. Thus, functions likepr_infoshould not normally be used after a call todevm_kzalloc. Thus, allpr_infooccurances are replaced withdev_infofunction calls.This was done using Coccinelle, the patch being:
@@
expression E1,E2;
expression list args;
@@
Quoted 8 lines
E1 =
devm_kzalloc(E2, ...);
<...
- pr_info(
+ dev_info(E2,
args);
...>Signed-off-by pooja.shamili <[email protected]>
I need a "real" name here, and in the From: line please.
thanks,
greg k-h