Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1050024imw; Fri, 8 Jul 2022 17:33:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sYSUGr80YvYttNT1mGIgKGsBLdwyrLqug5e1Qwyqy+NPx8v1otmvfij8J2DfBBUOyzUOmC X-Received: by 2002:a17:907:8a01:b0:726:2c8e:4cad with SMTP id sc1-20020a1709078a0100b007262c8e4cadmr5975208ejc.611.1657326833492; Fri, 08 Jul 2022 17:33:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657326833; cv=none; d=google.com; s=arc-20160816; b=f8V8ALB3pqtcKztULxURun0xXEoVt4f8d0PMqPw0OQfwjCiN+rYmaRReZ8y7BUSfPU lh/5TYd7QGfIrlWCtIjILCnWNNOx4AT8wfindKV9T2oq5QR6VHGvm08v4o6CFFa46uWU VqgL0fAGApwG01VyXvzxZznOtFPhdNShSsMgxs0sSYJ1OOAp3s5T9EHQgh1D1UWNliEj UQJWjeHxh8IjKLFG6uEnmjuifogKsXwCWe+SCWck4F+dpysdz+XPpj0VA6vE5pmygh/I 8+sGWf/sGb9Q01C23vNyLvjTn4mtHK3+rhWE733G1mAPQZ5AL4Qvx6sY+dJD4p2cTKgT cpHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Ym/hLn4CA1Su6g0NcmjU1JsXTgrF6db5zeImy2cSDdU=; b=E4yyMXwkW5QK7tqCDEuS8S1n4W1z2FLGPBELE9q0DnfFkgkre385gMc0NptUsB1OkC 7NriZgekUrErvOCPdywhygipJVRj8hlgS6YpnVneM8bhq9/r+SsooOh69ZwfikLY3IpT mHckVyhqdnVYS6D5mlq6kxLtE7jgYOSXTRnaA7K4RmiZYlIhYjU8i639N+x4g12kuEOa MAKA1uUuGUg5/eQiDtJuHO+HYDF9zvzYT9de5OCptZpXNsbhSOO9vynpoTGOXYftfDC3 Jn7x2uns/9c/nGOUTljnGGLZlgkZHSHck6ABeY0bAtyqXxrC3VWA66HmRRhuieHPLjpB LqPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mW13mzB+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp25-20020a1709073e1900b0072ac71ce749si60496ejc.1004.2022.07.08.17.33.28; Fri, 08 Jul 2022 17:33:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mW13mzB+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbiGIAH2 (ORCPT + 99 others); Fri, 8 Jul 2022 20:07:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229963AbiGIAHJ (ORCPT ); Fri, 8 Jul 2022 20:07:09 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12C0965581; Fri, 8 Jul 2022 17:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657325201; x=1688861201; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=B2WEj0fZg9Od4iODOdzOgRNHE9v/f0flGvXcbUXJo7c=; b=mW13mzB+eVAstlUNx954WPRmBY1Ir7LCaCdFzKECphQlwVz7G0n6QZIY CWvs87omlW0NGOimcAnbYmGCdbqe3lbkiEb9V72LiHXaNlLysmSmVDojM XRRfft8o++tElA6Rc81xKWTgKkdBXsF4MwJJtMHuRmgJs7L366WzEMo1Q d/BoVTZIWEmI7Mns7eYkROX8I1bAJx5evQV8rrgbE8uSBnpcuqCJHof/g 6bcVKnt4sf5C7Le6RnwXN2ZuwVOWi2mXiwAKS0Onbs1dpPGj82v/yMzmi CYysQAjkhepT3yza5MZ5GnjvdWf47sFbUam0M+/o7EYUjyIT213aV//1d A==; X-IronPort-AV: E=McAfee;i="6400,9594,10402"; a="267430735" X-IronPort-AV: E=Sophos;i="5.92,256,1650956400"; d="scan'208";a="267430735" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2022 17:06:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,256,1650956400"; d="scan'208";a="594289767" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga002.jf.intel.com with ESMTP; 08 Jul 2022 17:06:39 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 6CFE8CE; Sat, 9 Jul 2022 03:06:46 +0300 (EEST) From: Andy Shevchenko To: Hans de Goede , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mark Gross , Andy Shevchenko Subject: [PATCH v1 1/7] platform/x86: serial-multi-instantiate: return -ENOENT when no resources found Date: Sat, 9 Jul 2022 03:06:30 +0300 Message-Id: <20220709000636.35550-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Distinguish the case when device is present, but there are no resources. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/serial-multi-instantiate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/serial-multi-instantiate.c b/drivers/platform/x86/serial-multi-instantiate.c index 1e8063b7c169..97db23243018 100644 --- a/drivers/platform/x86/serial-multi-instantiate.c +++ b/drivers/platform/x86/serial-multi-instantiate.c @@ -100,7 +100,7 @@ static int smi_spi_probe(struct platform_device *pdev, struct acpi_device *adev, if (ret < 0) return ret; else if (!ret) - return -ENODEV; + return -ENOENT; count = ret; @@ -184,7 +184,7 @@ static int smi_i2c_probe(struct platform_device *pdev, struct acpi_device *adev, if (ret < 0) return ret; else if (!ret) - return -ENODEV; + return -ENOENT; count = ret; -- 2.35.1