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

Commit e830b587 authored by Murali Nalajala's avatar Murali Nalajala Committed by Matt Wagantall
Browse files

msm: rpm-smd: return probe success when standalone flag is defined



rpm-smd driver returning -EPROBE_DEFER when "standalone" flag is
defined in DT. Due to this rpm-smd driver keeps probe defer and
will never succeed. It makes clients of rpm-smd drivers to defer
their probe when clients call the rpm-smd exported APIs. To avoid
this return success when "standalone" flag is defined.

Change-Id: I9aefb33902bfff36c038a3d7a35d7fe6bf64799a
Signed-off-by: default avatarMurali Nalajala <mnalajal@codeaurora.org>
parent 474ccb3a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1403,8 +1403,10 @@ static int msm_rpm_dev_probe(struct platform_device *pdev)

	key = "rpm-standalone";
	standalone = of_property_read_bool(pdev->dev.of_node, key);
	if (standalone)
	if (standalone) {
		probe_status = 0;
		goto skip_smd_init;
	}

	ret = smd_named_open_on_edge(msm_rpm_data.ch_name,
				msm_rpm_data.ch_type,