Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp908732pxv; Fri, 25 Jun 2021 00:47:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHSZMm4Du8VzN+JNL63HttVI/Q5enwRUb1U0zHbG4JeyGAKD6piFoOU4uscgJfFc+9eYBc X-Received: by 2002:a05:6402:2789:: with SMTP id b9mr12734285ede.142.1624607248790; Fri, 25 Jun 2021 00:47:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624607248; cv=none; d=google.com; s=arc-20160816; b=RxeUkTd1T6vFJHaVN/HjWC/39lwcHHTpDynUobMozy2bwi8r99qCJwXtqJvC9rUTrB rpmbYOTJMBV3uK8OQjkh1ZTqnFKapVudurKoWXhXxJ5EiZaCmy45a5XG0WiQtbrAU4Wn vQp9IBl3ldU0OtMmbNwKPakiDwSJdFngePm2eZwO/frn2Cy16PRNR8xOq2hGdUcljfDy UMh7ox28Wzsg8LjmurqTiFfOcw9s1tOIxicoDeGKVzMOYN7I1SEJa1IWHdFrZhchfrpb wodr2ffGikJ2m4+wdyJa2lxB5EbisBHzz+oEyErwTdH7DNuB4yuSrAmxKruzOC4dHP3v nOgg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oSSgPgbyc3x4cqmHNpHaheX/qbUdUOstNFA2VxhadDE=; b=F7vCQ7eN1Zi+q7Y+qZ6o/qg8AJ1M7vTxcihR+Mg6klWvqTwBsS+3ZrF9BwWe4Do3IG f6npZ+95PaHKEKRJp98IglXBguHSFvjXncXniBSSele34WaLnOViBuydyrhFXP5gdJ8D /CJY/xKQZvVPWfOUdfqkm3YqtUtvwI9e1KmnyAIilBcviNKPB7/dolxmfajTetemyOnp MHi/ibAvpzyBA04CC0ehJKWWDZ1up2wsa8sLtI3daJoCnFlxYvF6PXd9Dk1U279oVC75 3xJ3RSs1tR9fS5TI8OZcz2x6/iqL5G9hwlBBNgMwCOeeAVPBxHBl6sqgA3bfQb2QHufo raFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BOaCEIUh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hc43si414745ejc.241.2021.06.25.00.47.05; Fri, 25 Jun 2021 00:47:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BOaCEIUh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230071AbhFYHsd (ORCPT + 99 others); Fri, 25 Jun 2021 03:48:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:40196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbhFYHsc (ORCPT ); Fri, 25 Jun 2021 03:48:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 47E0B6141C; Fri, 25 Jun 2021 07:46:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624607172; bh=Z7clAz4iJbT7z/W2XZ8uk8GPACguI/8XqnWeaDjkd20=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BOaCEIUhTwM2+Lziv8DUdSFhpR7ALklZi2bzr3rMdDSGdAvUBzs79yv2PsR+kwJuh KXkKZymHpUZ1rHY4zpupbKTIYX95R8W1nElf5GVECe17LbrSHjNC66wX+aix9a546c 0gTaxWGjVvZVS8BhyUlm1uWgTSTO9yNnGunqEDjRHwxYv6zHM5XCz+KABH0IQfyYFZ 7zftaEp3SX6j1gbU06YNbrPqFNSjeDhF7vqKr90bq+E2p8VJ6+9Oy5b21VjQLdVX9C ihh8SSOQJ8KzlpAIrAmKZOm9ICVM3WQH1UddRPGX5LTD5SnHvPn4z9CST6H7dnnNYO QN3fZgzLa4vdw== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1lwgXS-004aeU-Gh; Fri, 25 Jun 2021 09:46:10 +0200 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , "Lee Jones" , linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH v8 07/12] staging: hi6421-spmi-pmic: change a return code Date: Fri, 25 Jun 2021 09:45:59 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org return -ENODEV if irq_create_mapping() fails at probing time. Suggested-by: Lee Jones Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/hikey9xx/hi6421-spmi-pmic.c b/drivers/staging/hikey9xx/hi6421-spmi-pmic.c index be049a5abbcd..3f4bfeaaf05e 100644 --- a/drivers/staging/hikey9xx/hi6421-spmi-pmic.c +++ b/drivers/staging/hikey9xx/hi6421-spmi-pmic.c @@ -245,7 +245,7 @@ static int hi6421_spmi_pmic_probe(struct spmi_device *pdev) virq = irq_create_mapping(ddata->domain, i); if (!virq) { dev_err(dev, "Failed to map H/W IRQ\n"); - return -ENOSPC; + return -ENODEV; } ddata->irqs[i] = virq; } -- 2.31.1