From patchwork Mon Jul 8 17:04:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 13726881 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CD16FC3271E for ; Mon, 8 Jul 2024 17:05:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=MvpNrB9c9Hl46wWiT75cgTZb/z1ngLdiVtG52BbExk8=; b=1GfMbaT2bmujzAY6LSGut6lftH IamM567ZPcu8y27Gbc4G3nVcFBDtVqLIi2prGuNeVPslum2unBCF1fxDQJj9PQJfbG8BOrDeQiycI Q0YVgzdh58PJRGchq/8QWLR4cpJtsQJRVBsK2x1sR3UaLAFTEMeGKa1UjnPoeNmULxker8VH3MvXr xbNe9xheGMMeH39aLThI1aWTTPc8EvZbWgvjQV/28bp71XMGxX6ZzNPe2SOCPCrhSC55XQmkdj2gO 63b+6bAGhSRAUCxCnTG+hHmCWQwgeAU+QwpjtMk5aWpAzoG14QnrIx2b5tMYOKptK3AB8SDobF6+f EEul9ZOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQrnL-00000004Wpz-2Dzy; Mon, 08 Jul 2024 17:04:55 +0000 Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQrn6-00000004Wli-0vCZ for linux-arm-kernel@lists.infradead.org; Mon, 08 Jul 2024 17:04:41 +0000 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-250ca14422aso2382264fac.0 for ; Mon, 08 Jul 2024 10:04:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720458277; x=1721063077; darn=lists.infradead.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=MvpNrB9c9Hl46wWiT75cgTZb/z1ngLdiVtG52BbExk8=; b=mk8yMr1o52BIs1BJx4J4cgd/TPh4fboBmADvICjEVBJfpZSTxr3r2kLejpwMgZpq4f GdHPHqmC3R/sgwwyIIKHfjLklIoFwS4FIPOjuXejmEKcno41GJKwIqgeuqXzF/ZRGP3L b0v9nkxbXAF32mC7ENovCyjWDNVbHSKR6IgXDWVuta0IIAARiF9+Hzk3yMK2Zcp0BVi+ NKGUb/1FSbbG+NfwSQY797fqBJ3JZrO/9fz87GADELByVva6TnkJ0fYFJP+Xxcc8/lFU ahcK8RDP3HWH4DFLQ12zrQrkF0+UKc06HTfpKRdcMTidH/vmU2+phTof0U0/t1JZOyHG RrRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720458277; x=1721063077; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MvpNrB9c9Hl46wWiT75cgTZb/z1ngLdiVtG52BbExk8=; b=xKzCyDxSfvNijnqQvRi0ffNWt80O9KRxcTy4GKOatg5kCuqsmZCpgiaqi6SxhRRywW GtPFw68goR6mKOzyrZ10dAKjPRkZpI9cHdPX3UBycCtq5t9eeI95T+Te+1DhVbJKWVzu 4GDA6Ksh1KfB+ObnxDODJ1ivBHQFwX1RyUoBMmRR+QoJs3Wb5HbGZdoXb7djHZVcXIWz q0JvW3pwS4WXYKECv1WaaPPIGqXQuxGACHUTka+/UFv55eNKPF9mrow1KYXur1cSGVQS ToKBENV68ePLTKRDSlPBG3pH87VEwDlZEpGhYKb0L+o1hVFj4pGn5flLjOUKIxQm4LcU KARg== X-Forwarded-Encrypted: i=1; AJvYcCWLfBJscWn53ozX4yhmOq0ekfIfHDeKnDETmfydBPUh0Mz1gndiQRWknrvZkMbRPmpOIRywCvq8mf4aT24tfdeac0kMaQ8LKTNbSzjK3CQT7HDcDMY= X-Gm-Message-State: AOJu0Yyg9o+VLAtylVuKPwxBMnj5y9oSjbk1MMU/M2uQUh8cY+mLEqVD TPfsxaxxZgVksFHplhxk0eSlhK9sKBenHjunKoo5jl1aX7GfT+aAYRWROqMFa2Q= X-Google-Smtp-Source: AGHT+IHBVVH6omPzyI4LtKLmO7vYBh9XFRpTa35ZGKUdJwwwS7iIEWOMqHJsi48/VsYlkMNnwlk8qg== X-Received: by 2002:a05:6871:299:b0:25e:170b:4470 with SMTP id 586e51a60fabf-25e2bf1e4ebmr12424412fac.50.1720458276907; Mon, 08 Jul 2024 10:04:36 -0700 (PDT) Received: from localhost ([2603:8080:b800:f700:cdd0:d497:b7b2:fe]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-25ea9f8fce4sm79026fac.8.2024.07.08.10.04.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jul 2024 10:04:36 -0700 (PDT) Date: Mon, 8 Jul 2024 12:04:33 -0500 From: Dan Carpenter To: =?iso-8859-1?q?Andr=E9?= Draszik Cc: Vinod Koul , Kishon Vijay Abraham I , Krzysztof Kozlowski , Alim Akhtar , Peter Griffin , Sam Protsenko , Rob Herring , linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] phy: exynos5-usbdrd: fix error code in probe() Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Mailer: git-send-email haha only kidding X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_100440_425234_63D92EB6 X-CRM114-Status: GOOD ( 13.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Return negative -ENOMEM instead of positive ENOMEM. Fixes: 497ddafe915e ("phy: exynos5-usbdrd: convert Vbus supplies to regulator_bulk") Signed-off-by: Dan Carpenter Reviewed-by: André Draszik Reviewed-by: Sam Protsenko Reviewed-by: Peter Griffin --- drivers/phy/samsung/phy-exynos5-usbdrd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exynos5-usbdrd.c index df52b78a120b..9cbf90142950 100644 --- a/drivers/phy/samsung/phy-exynos5-usbdrd.c +++ b/drivers/phy/samsung/phy-exynos5-usbdrd.c @@ -1745,7 +1745,7 @@ static int exynos5_usbdrd_phy_probe(struct platform_device *pdev) sizeof(*phy_drd->regulators), GFP_KERNEL); if (!phy_drd->regulators) - return ENOMEM; + return -ENOMEM; regulator_bulk_set_supply_names(phy_drd->regulators, drv_data->regulator_names, drv_data->n_regulators);