From: Haneen Mohammed Date: Wed, 18 Mar 2015 10:09:50 +0000 (+0300) Subject: Staging: media: replace pr_* with dev_* X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~338 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c9356d115c91c18a2508a266a482c47fc3659c6;p=pandora-kernel.git Staging: media: replace pr_* with dev_* This patch replace pr_err/pr_info with dev_err/dev_infi, when appropriate device structure is found. Issues found using the following Coccinelle script. pr_err/dev_err was substituted with pr_info/dev_info in the later case. @r exists@ identifier f, s, i; position p; @@ f(...,struct s *i,...) { <+... when != i == NULL pr_err@p(...); ...+> } @rr@ identifier r.s, s2, fld; @@ struct s { ... struct s2 *fld; ... }; @rrr@ identifier rr.s2, fld2; @@ struct s2 { ... struct device fld2; ... }; @@ identifier r.i, r.s, rr.fld, rrr.fld2; position r.p; @@ -pr_err@p +dev_err ( + &i->fld->fld2, ...) Signed-off-by: Haneen Mohammed Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed