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

Commit f909cbbc authored by Patrick Daly's avatar Patrick Daly
Browse files

soc: qcom: mem-offline: Don't print error messages on EPROBE_DEFER



Avoid confusing the user by printing error messages for normal scenarios.

Change-Id: I0ad5584f18bde8b953b7daaea3235a23a7609723
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 025a7467
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 */

#include <linux/memory.h>
@@ -346,6 +346,7 @@ static int mem_parse_dt(struct platform_device *pdev)

	mailbox.mbox = mbox_request_channel(&mailbox.cl, 0);
	if (IS_ERR(mailbox.mbox)) {
		if (PTR_ERR(mailbox.mbox) != -EPROBE_DEFER)
			pr_err("mem-offline: failed to get mailbox channel %pK %d\n",
				mailbox.mbox, PTR_ERR(mailbox.mbox));
		return PTR_ERR(mailbox.mbox);
@@ -363,8 +364,9 @@ static int mem_offline_driver_probe(struct platform_device *pdev)
{
	int ret;

	if (mem_parse_dt(pdev))
		return -ENODEV;
	ret = mem_parse_dt(pdev);
	if (ret)
		return ret;

	ret = mem_online_remaining_blocks();
	if (ret < 0)