Author: Bhumika Goyal <bhumirks@gmail.com> This patch replaces pr_err calls with dev_err when the device structure is available as dev_* prints identifying information about the struct device. Done using coccinelle: @r exists@ identifier f, s; identifier x; position p; @@ f(…,struct s *x,…) { } @r2@ identifier fld2; identifier r.s; @@ struct s { … struct …