From patchwork Thu Nov 3 19:51:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 15129 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp736612wru; Thu, 3 Nov 2022 12:54:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM61vMSlqFwNcbYDneYhVlbZyK2sybhkVDCsOllyC+sUDh7CABACX0Mr3YUYBrkvhvFZ4AzR X-Received: by 2002:a63:5c56:0:b0:464:85bb:8fd9 with SMTP id n22-20020a635c56000000b0046485bb8fd9mr26670365pgm.188.1667505244802; Thu, 03 Nov 2022 12:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667505244; cv=none; d=google.com; s=arc-20160816; b=yQfymk6DFs8Tb2giUfOYcjOr8ICgV76qGVnf3W6qsLPJMt7gI1awOqV7nlg7kYQjhy 3+ftC9fAodB+OMEB7pRuNrwrfoSQTZMNfFj+Qqenc1+EkilUi9EsL2TNU77//7TmmNMn VAFbd4zoJQVIu60mgSDnWZuLAJO9Uh1pGn2OuFE97WV7IgQM+WjU4owm/cIVH+4FsHnv 4nATwtbvjSq/esqB6FIJsbzlVLrc/ZbNQAQzkskTtJtD21yjS6qvPOksSCI4shMDRA1x BJmwmBaLLaks1X+mh1XtUMD249TRdrdSwK5JYfevwkWPx1OvKT6yoRV0voThXkoQKXp5 vHNA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=C88yKCopssymOAMe7KHFSlCl2Lylr4sF9uZV7UHC95E=; b=uwC1w0Sgge1IC/TvNvqDvTG9xnbDl9174xaO8w2Rz3jKiimtzN+FP0GWHN8VHPGNbl tKEDpqGaSFys6Jlnp0LmzNUSIlhntGZcxNukNr1YrUkGxfjXPAgdGVEfSiylpBPGjc4L gf/XbwxFlrbdTE5c+VkJT5UwFKEIaq5nty4vQyT9qJwjtu4+fHUr2UX85ztKmWEI8uLs J9MaNFE8XHol73iAmFO3m0YtJwRwzI3K5PYY/P5DMWimhY2ykBqDRh98V3EWLfRjaeiv AMpr2MG/hWqKV0253dVu0m5dUs9jkuHH+FhtRJVmupZY6Ya5yLb8Q1t0yrtsFf9coq3X AzTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JNnSWiaL; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ot3-20020a17090b3b4300b002121890521csi1041511pjb.119.2022.11.03.12.53.51; Thu, 03 Nov 2022 12:54:04 -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=@linaro.org header.s=google header.b=JNnSWiaL; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230150AbiKCTwI (ORCPT + 99 others); Thu, 3 Nov 2022 15:52:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230153AbiKCTwC (ORCPT ); Thu, 3 Nov 2022 15:52:02 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C0C91E3D8 for ; Thu, 3 Nov 2022 12:52:00 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id z18so4668891edb.9 for ; Thu, 03 Nov 2022 12:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=C88yKCopssymOAMe7KHFSlCl2Lylr4sF9uZV7UHC95E=; b=JNnSWiaLPu25KnAyCNpaAD7Ly2+4NcVx1V6Eugxf+ijwsUjrFE9ecgyeuEgPFSEyxz FKf4DWokPxTymvXIRFJCPn0ZpWILr52tu/S0yEzdyMAff5tTSxtHw8Z8xhoPjTDU9tfD bBq9y1xE4YfD8UQu5ZFgRhYzuUzOytWCb9pbu4MovgFkctkLmV/L9dBwQ8vu1/YzszeC qDTCvEwTaxg5dBDp0D1xq8KrSAN8FLdNejgZRNeJu2qKXC7eNNhAdG7mQpbpyk3hnWKF BkgxrumY+6mwjvxtqef2jQAZ7+SHEv/MoZgYdsJWgK7ZznhFuWS87Nv3WmzoQd6o3Z4b Nx5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=C88yKCopssymOAMe7KHFSlCl2Lylr4sF9uZV7UHC95E=; b=Hptflq5L5lLHxWN9/xuCl46Aokkbd1xRyMIzAqbCzmlAIuz/LDshFl9CS/bPsUgnDO 4BfrRzmy/FgMnhdTjUnyyHia8gHSeqWapAo/klxRTUQDEgw6hgGGByoaSSpwNLMnHmj4 YqdGGfDG5j6qsjhN3Ip4WGcizzSKu+2lJWz7YMS+a3YsVK4TzRpfV1Z2xF+gQ+NvKYBA qDweLvdDTaXHCWjzHzhgyc6dr0HvfzmwX2VE9wAs/FzP5y+nLmEFRN6nvIiBBtEzQaJE Ix3qnJ5MtBCBHR6M7wkvhgl3dcYBvjjcbvbGMqGER/KFNLZkFAqwJ5U3iAl1VtFy0eni nH4Q== X-Gm-Message-State: ACrzQf04wUCZFWUtU30o/oZb6zvdQ6DjrWheAKmEo2VlZjbdvt1+M5sV MWOf8IYS7bDrDbgiQjujcPHizw== X-Received: by 2002:aa7:de0a:0:b0:462:d2a0:93a with SMTP id h10-20020aa7de0a000000b00462d2a0093amr30786059edv.275.1667505119162; Thu, 03 Nov 2022 12:51:59 -0700 (PDT) Received: from localhost (cgw.msart-bajzova4.ke.cust.o2bs.sk. [90.176.4.227]) by smtp.gmail.com with ESMTPSA id tz14-20020a170907c78e00b0078ddb518a90sm834227ejc.223.2022.11.03.12.51.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 12:51:58 -0700 (PDT) From: Sam Protsenko To: Marek Szyprowski , Krzysztof Kozlowski Cc: Joerg Roedel , Will Deacon , Robin Murphy , Sumit Semwal , Alim Akhtar , Janghyuck Kim , Cho KyongHo , Daniel Mentz , David Virag , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 2/6] iommu/exynos: Fix retval on getting clocks in probe Date: Thu, 3 Nov 2022 20:51:50 +0100 Message-Id: <20221103195154.21495-3-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221103195154.21495-1-semen.protsenko@linaro.org> References: <20221103195154.21495-1-semen.protsenko@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748505979623989723?= X-GMAIL-MSGID: =?utf-8?q?1748505979623989723?= checkpatch reports next warning for clock getting code in probe function: WARNING: ENOSYS means 'invalid syscall nr' and nothing else Replace it with -ENOINT to make checkpatch happy. Signed-off-by: Sam Protsenko Acked-by: Krzysztof Kozlowski --- Changes in v2: - (none) drivers/iommu/exynos-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index 45fd4850bacb..0d150b383d04 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -689,7 +689,7 @@ static int exynos_sysmmu_probe(struct platform_device *pdev) if (!data->clk && (!data->aclk || !data->pclk)) { dev_err(dev, "Failed to get device clock(s)!\n"); - return -ENOSYS; + return -ENOENT; } data->clk_master = devm_clk_get(dev, "master");