From: Haneen Mohammed Date: Tue, 17 Mar 2015 05:35:41 +0000 (+0300) Subject: Staging: iio: replace pr_err with dev_err X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~342 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92371df8a9b70735b63075bb1f8a7480488d748e;p=pandora-kernel.git Staging: iio: replace pr_err with dev_err This patch replace pr_err with dev_err, when appropriate device structre 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed