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

Commit 7e700a3d authored by Tarun Karra's avatar Tarun Karra
Browse files

msm: kgsl: Do not cause a fatal error on request firmware failure



request_firmware() can fail sometimes.  If it does propagate the
error up and fail the open request and do not trigger a fatal
error.

Change-Id: I0adcd21ad6a1d50be2f374b0a88537a705c58b1f
Signed-off-by: default avatarTarun Karra <tkarra@codeaurora.org>
parent 9154e7c9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1480,7 +1480,7 @@ static int _load_firmware(struct kgsl_device *device, const char *fwfile,
	ret = request_firmware(&fw, fwfile, device->dev);

	if (ret) {
		KGSL_DRV_FATAL(device, "request_firmware(%s) failed: %d\n",
		KGSL_DRV_ERR(device, "request_firmware(%s) failed: %d\n",
			     fwfile, ret);
		return ret;
	}
+1 −1
Original line number Diff line number Diff line
@@ -1489,7 +1489,7 @@ static int _load_firmware(struct adreno_device *adreno_dev, const char *fwfile,
	ret = request_firmware(&fw, fwfile, device->dev);

	if (ret) {
		KGSL_DRV_FATAL(device, "request_firmware(%s) failed: %d\n",
		KGSL_DRV_ERR(device, "request_firmware(%s) failed: %d\n",
				fwfile, ret);
		return ret;
	}