5 expression base, dev, res;
8 -base = devm_request_and_ioremap(dev, res);
9 +base = devm_ioremap_resource(dev, res);
17 + return PTR_ERR(base);
26 e = devm_ioremap_resource(...);
28 if (IS_ERR(e) || ...) {
44 e = devm_ioremap_resource(...);
46 if (IS_ERR(e) || ...) {
48 - \(dev_dbg\|dev_err\|pr_debug\|pr_err\|DRM_ERROR\)(...);
57 e = devm_ioremap_resource(...);
74 *e = devm_request_and_ioremap@p1(...);
76 if (e == NULL || ...) {
85 @script:python depends on r@
89 msg = "ERROR: deprecated devm_request_and_ioremap() API used on line %s" % (p1[0].line)
90 coccilib.report.print_report(p1[0], msg)