* manipulate any relevant information in the pdev_archdata they can do:
  *
  *     platform_device_alloc()
- *     ... manipulate ...
- *     platform_device_add()
+ *     ... manipulate ...
+ *     platform_device_add()
  *
  * And if they don't care they can just call platform_device_register() and
  * everything will just work out.
                }
 
                if (p && insert_resource(p, r)) {
-                       printk(KERN_ERR
-                              "%s: failed to claim resource %d\n",
-                              dev_name(&pdev->dev), i);
+                       dev_err(&pdev->dev, "failed to claim resource %d\n", i);
                        ret = -EBUSY;
                        goto failed;
                }
        int rc;
 
        /* Some devices have extra OF data and an OF-style MODALIAS */
-       rc = of_device_uevent_modalias(dev,env);
+       rc = of_device_uevent_modalias(dev, env);
        if (rc != -ENODEV)
                return rc;
 
 
                switch (match_id) {
                case EARLY_PLATFORM_ID_ERROR:
-                       pr_warning("%s: unable to parse %s parameter\n",
-                                  class_str, epdrv->pdrv->driver.name);
+                       pr_warn("%s: unable to parse %s parameter\n",
+                               class_str, epdrv->pdrv->driver.name);
                        /* fall-through */
                case EARLY_PLATFORM_ID_UNSET:
                        match = NULL;
                        }
 
                        if (epdrv->pdrv->probe(match))
-                               pr_warning("%s: unable to probe %s early.\n",
-                                          class_str, match->name);
+                               pr_warn("%s: unable to probe %s early.\n",
+                                       class_str, match->name);
                        else
                                n++;
                }