Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1492597rbb; Mon, 26 Feb 2024 10:57:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUnFJaMj0pySsmACD81HO4UZ4K2C3VK1rWZIynVEz8g9xJE39K7VpRPLk1SykJVSlTRUvDT+buFjhOTEItap/D5rnrM0QtIpYesEFj8PQ== X-Google-Smtp-Source: AGHT+IEkxFbjgjYATVzZ/fkTAUJd2pKbY+5rgu8TLsxjdlY87vaC4SMiQoQ/gpk5cMGoc/xgvzmb X-Received: by 2002:a17:906:528c:b0:a3f:db30:872a with SMTP id c12-20020a170906528c00b00a3fdb30872amr5009880ejm.66.1708973851330; Mon, 26 Feb 2024 10:57:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708973851; cv=pass; d=google.com; s=arc-20160816; b=Y7MaEO+OBfaK5G3IfprJuzOFaNJqysogf/T9KUTUnjn0ekQEqh0JIDzyfPx/rj7XSb 0iuI9zDCbeH/as3A9ra2ZexeQTt/3tWkjUwLzLllg36aHQjJ8R7qzfU3pV8in85PRGdR 2GwX/zYYHAvFh1Q4vDvAH8iwy5pKfqbjn9tCPSm6lyHVulRCsB7cuouukQr3vomOwIn+ 7UqHRG928aQDxpRuFj7Y7eAnmCQWhCRlmG79qjkakFtpi6YriRR3jY3XwK/WlAmRk5GS qRkiaIuD4Nc2FfQ1nL8ni3q0Rl5BKZhNC/vBvcdqja2ZGRBeRGBJuY4WmCrWlRonrJz8 JX7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=yMYIvkqS8xxT349WCKvCBmcKEff+InSFVLgJewQXzkw=; fh=SqCs7KZ8ytcbnkiRESvNRChZIthYOwhcUjFjEDfWP4k=; b=zAe041uGuiEqxGipoi0GdEYIHyMxk+W1wtJt3pjpdbWnEjnc3Zhgc2TgR6cqFAGb++ VYXF6QbuBiKEvC3i0TmRmQlC58obnkPHsq9O5r5LsJWJj+ChFY5r536RazI/sdhTONLl du9ETkrE8KQdQ7gs7KzxpvVKwz/9S1xDweNzlMgGGuyvqwa8gDUe++kbkUnuiVSvLSN7 BztSYpbCcuuMuNIPgJ0IwiF+OHrGmKgmSRT7hAOVEzgHaNXGLTQFyqcUDZptqFPipjyV r2z/1Gw0UxtX0H+K+IBgwIw0EWUhl7bC3+Ah0MQljUFLeadKbUA6ecDRs/UBrM6H1A9h Gc5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kaiser.cx); spf=pass (google.com: domain of linux-crypto+bounces-2325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2325-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h16-20020a170906399000b00a3cef7298b4si21719eje.217.2024.02.26.10.57.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 10:57:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kaiser.cx); spf=pass (google.com: domain of linux-crypto+bounces-2325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2325-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 108DD1F244D7 for ; Mon, 26 Feb 2024 18:57:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F63012F583; Mon, 26 Feb 2024 18:57:24 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from akranes.kaiser.cx (akranes.kaiser.cx [152.53.16.207]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6C3812E1D5; Mon, 26 Feb 2024 18:57:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=152.53.16.207 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708973844; cv=none; b=Iimw4w8ccvKu68rrTDYtfGrh7BiKUv9EXRZ2qF1JOwRPn9f62xhRbTdjAwKkwF5cBiuZEPzYA+YE0mt+6Nux+GO6ufH0/4nOp591rmJWbdy22Qm4YPscoRtr0gPx8YLysFmWrg9uBL8Jx9jH4/hAfBaQuzFiVeylDMdka1xRM2w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708973844; c=relaxed/simple; bh=XGFGDL2vkSkevkpwiN9gnwJy3m/FJ2fKnkPaSRjeF+I=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=EUHpc8MHXtcwTxd9gT6oK2scsiBhY54B2jl0p7x1LLhNI1d+0eJ+SgQKr3RtNJHm3k1QErueisKuMH4asih9jG4KKRzxgRgZIXGXrH8GAuOa7WBkVwi/GgfCz0/zbtAp/fcwlSMyLXqMNUPceak6/tnWBO/kwCVO7J36QPR1Y5g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kaiser.cx; spf=pass smtp.mailfrom=kaiser.cx; arc=none smtp.client-ip=152.53.16.207 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kaiser.cx Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kaiser.cx Received: from dslb-188-097-209-155.188.097.pools.vodafone-ip.de ([188.97.209.155] helo=martin-debian-2.paytec.ch) by akranes.kaiser.cx with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1reg9h-001h3u-19; Mon, 26 Feb 2024 19:56:49 +0100 From: Martin Kaiser To: Herbert Xu Cc: linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH] hwrng: hisi - use dev_err_probe Date: Mon, 26 Feb 2024 19:57:00 +0100 Message-Id: <20240226185700.39411-1-martin@kaiser.cx> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Replace dev_err + return with dev_err_probe. Signed-off-by: Martin Kaiser --- drivers/char/hw_random/hisi-rng.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/char/hw_random/hisi-rng.c b/drivers/char/hw_random/hisi-rng.c index b6f27566e0ba..4e501d5c121f 100644 --- a/drivers/char/hw_random/hisi-rng.c +++ b/drivers/char/hw_random/hisi-rng.c @@ -89,10 +89,8 @@ static int hisi_rng_probe(struct platform_device *pdev) rng->rng.read = hisi_rng_read; ret = devm_hwrng_register(&pdev->dev, &rng->rng); - if (ret) { - dev_err(&pdev->dev, "failed to register hwrng\n"); - return ret; - } + if (ret) + return dev_err_probe(&pdev->dev, ret, "failed to register hwrng\n"); return 0; } -- 2.39.2