Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2048119ybc; Sun, 17 Nov 2019 12:47:57 -0800 (PST) X-Google-Smtp-Source: APXvYqy/WK9YsM22WDx0p7y7sYOMD29HGfUyYJZHeQ7BwRqfUDHLjoEBmZuve31ftsmbixEoG5Hx X-Received: by 2002:a17:906:4a0c:: with SMTP id w12mr21169642eju.306.1574023677180; Sun, 17 Nov 2019 12:47:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574023677; cv=none; d=google.com; s=arc-20160816; b=yMFkik19Nowjxp1x3JSyPPUtRybUuQnTcGAi/ocdI/1ybcTCy+bMMC5VNnk0r769Tm QecN5v3PM0WVYlN4pOBvF4otEot44dr0hzsvPGrl211wZ1K+niFp1uKyGF8k3poIC2Gu blh0/ZstndfwJTjTfCZ9q7+jFBia3RzZ/b/2P6hDPSMuvv62mujgjAy/M6m/JOjwsSz3 9a3PjrPuOdWw8Vo35CM8FrGorinUt5RSM5FAUPE9/wBzMOrapL2E2DoZiyMuw6lOrt2F 3IPPAcUq06HnC/je8StDA/PXK+N7F7c7bt7QM9FENpjQviubA5kCB8R8Jr47WsnzeYTU EUyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr; bh=zto/wtynLVpLFHUMgYbwwpGDaCNgSiwtUOlUqyc1SAA=; b=I+g9m1V2cOMc3iVWpnAXTOODWgTtk8wGw2DiLTiRShZYwXknknfLYgaX09s4+dJc/5 I12jrsyF5kA+QlQsSuXrChs4PMnaixqBr4JmpRPYWvYo3zJmr8rjll9jPGnVkdiBd9Od 9YfETVluioA4N0VAlSQxbLLSn3aSZy50EZO1kyEog9PDM7519ro9DyyXqG8abpXUXgx7 eT+hb8m4hE2O566VKeHEPf4NG3cKVSRbfSaSf4d8vhvX4C0p1+XgAnWxXGOfmnPtUuRL HS9OxzYtfHzcw60AfR+rdTjiJMK5mvagN72yTlyCgfqVVUbhtllAiyLdUSWObeJ4pFn5 twsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2si11884870ede.61.2019.11.17.12.47.33; Sun, 17 Nov 2019 12:47:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726325AbfKQUoF (ORCPT + 99 others); Sun, 17 Nov 2019 15:44:05 -0500 Received: from ch3vs05.rockwellcollins.com ([205.175.226.130]:63152 "EHLO ch3vs05.rockwellcollins.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbfKQUoF (ORCPT ); Sun, 17 Nov 2019 15:44:05 -0500 X-Greylist: delayed 427 seconds by postgrey-1.27 at vger.kernel.org; Sun, 17 Nov 2019 15:44:05 EST IronPort-SDR: yJ8pmNvtDVPJ9RfHdaTR6KZdYTsZrXL97+YIAVwaDZo1jnNuGEiGR14rJM/kbU98ptwXosF43S /nNAVnYpZmQz74d3G+wf9tw74iaR8U0+XrobfVsG6gdWJwKSDbvg3rRkCi6+exYdTOtcHshktl bOrXR4cx2eugSzy8yW05DbXQ7CMJfKkoYmckaof8zDMvUg9R6a4KyC49XkRO/Yc9+5tZCdSWhB lmdq+j3KZogMzmnlRyFVkGXZE/W+SO2MoP/met7nvQ7SvmPtQ8qS11+mm+AbrNg1q2QHiMbH7X kio= Received: from ofwch3n02.rockwellcollins.com (HELO dtulimr01.rockwellcollins.com) ([205.175.226.14]) by ch3vs05.rockwellcollins.com with ESMTP; 17 Nov 2019 14:36:58 -0600 X-Received: from righttwix.rockwellcollins.com (righttwix.rockwellcollins.com [192.168.141.218]) by dtulimr01.rockwellcollins.com (Postfix) with ESMTP id 6816E6041C; Sun, 17 Nov 2019 14:36:57 -0600 (CST) From: Brandon Maier To: linux-kernel@vger.kernel.org Cc: jassisinghbrar@gmail.com, Brandon Maier Subject: [PATCH] mailbox/omap: Handle if CONFIG_PM is disabled Date: Sun, 17 Nov 2019 14:36:49 -0600 Message-Id: <20191117203649.15208-1-brandon.maier@rockwellcollins.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If CONFIG_PM is disabled, pm_runtime_put_sync() returns -ENOSYS. Signed-off-by: Brandon Maier --- drivers/mailbox/omap-mailbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/omap-mailbox.c b/drivers/mailbox/omap-mailbox.c index a3cd63583cf7..5978a35aac6d 100644 --- a/drivers/mailbox/omap-mailbox.c +++ b/drivers/mailbox/omap-mailbox.c @@ -868,7 +868,7 @@ static int omap_mbox_probe(struct platform_device *pdev) dev_info(mdev->dev, "omap mailbox rev 0x%x\n", l); ret = pm_runtime_put_sync(mdev->dev); - if (ret < 0) + if (ret < 0 && ret != -ENOSYS) goto unregister; devm_kfree(&pdev->dev, finfoblk); -- 2.23.0