Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0258e182 authored by Fabio Porcedda's avatar Fabio Porcedda Committed by Greg Kroah-Hartman
Browse files

driver core: platform.c: fix checkpatch errors and warnings

parent 647c86d0
Loading
Loading
Loading
Loading
+8 −10
Original line number Diff line number Diff line
@@ -326,9 +326,7 @@ int platform_device_add(struct platform_device *pdev)
		}

		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;
		}
@@ -1130,7 +1128,7 @@ static int __init early_platform_driver_probe_id(char *class_str,

		switch (match_id) {
		case EARLY_PLATFORM_ID_ERROR:
			pr_warning("%s: unable to parse %s parameter\n",
			pr_warn("%s: unable to parse %s parameter\n",
				class_str, epdrv->pdrv->driver.name);
			/* fall-through */
		case EARLY_PLATFORM_ID_UNSET:
@@ -1162,7 +1160,7 @@ static int __init early_platform_driver_probe_id(char *class_str,
			}

			if (epdrv->pdrv->probe(match))
				pr_warning("%s: unable to probe %s early.\n",
				pr_warn("%s: unable to probe %s early.\n",
					class_str, match->name);
			else
				n++;