From patchwork Fri May 19 16:11:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 96491 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1359032vqo; Fri, 19 May 2023 09:26:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4SRZnt0kt3VqnIt8TyBMt7oVfaAn6qeeNgJztxSZejuBGwZi1P25inF97i6O6N7qlQH/u1 X-Received: by 2002:a05:6a20:9185:b0:101:41f8:7a17 with SMTP id v5-20020a056a20918500b0010141f87a17mr4006945pzd.20.1684513565251; Fri, 19 May 2023 09:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684513565; cv=none; d=google.com; s=arc-20160816; b=TtNn+SYOEoqQEzmTikiuDLxgV6+5Z6jBY+fl1p68VAeZIWrIcWzDWVLWnfTBzZRY8O wUtZV4gNJqTDQv7XtfnhyiJVCATToPM3rJxNJOLcsXQxEFG2KS8Xe4CcrbXyDj46FXRl teHb+4ptkPSLMaDMjhd/dsbzxtElAi2Q+9pX3b9hWRf5Kerqy/k5Fq6dH03RoWzqk94L 8DLF0kYgk0z0WHcH+ra+gXJavxQfGTCrVFJeAnGG1ecQNleh6OLUzuaKBzfZBUPyIt45 NM2blXV11agMDbuWiyUwj19CZ9DCbhNaF6Fnn9iqN60CljNsyRuk3gUGmNcoy2gUmrb0 QqVw== 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; bh=6ITY66+le5s8eXEzY+p1XZ+zG0mJq5ay0L7FjuNi/24=; b=Uf6y0VTvV2/zdWVpj/TZOicyh4psgcKG7bxS5Z5mFdHImnIlTSXamuil4GOqvZaHpc G1tDdsAE8ckd8W8vlCn5B85pjK3HDsoETNHHBWIxPZnEfyibe5ifAQ8CZVr2H5QppLIy FVVJbg/bUrzS+k31YyQaLCCAtqpkBNf8FKpRR2X3lDVmv8aaUM6NbSSMGsZk3CXF71jh zhQXuhLjv+sS2Jv/eYl6d0IIL2Xp40YDYEyA/NfVUf/zUBgl3Lw+95QN+IycynMKTh00 ayvlWw6OQ5AAkPb5t/7e5tKJ5C5MQzhyrGJ7lcPvtQZx6liyHFQe8uqOQ410gYWz11oP AQ/Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v62-20020a638941000000b005347c4d09ddsi3119255pgd.678.2023.05.19.09.25.52; Fri, 19 May 2023 09:26:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229865AbjESQMQ (ORCPT + 99 others); Fri, 19 May 2023 12:12:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbjESQMM (ORCPT ); Fri, 19 May 2023 12:12:12 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2265BB; Fri, 19 May 2023 09:12:11 -0700 (PDT) Received: from ipservice-092-217-072-086.092.217.pools.vodafone-ip.de ([92.217.72.86] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1q02iA-0001FM-6I; Fri, 19 May 2023 18:12:10 +0200 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 1/2] hwrng: imx-rngc - mark the probe function as __init Date: Fri, 19 May 2023 18:11:18 +0200 Message-Id: <20230519161119.287268-2-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519161119.287268-1-martin@kaiser.cx> References: <20230519161119.287268-1-martin@kaiser.cx> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766340496309006876?= X-GMAIL-MSGID: =?utf-8?q?1766340496309006876?= Mark the imx_rngc_probe function as __init. There's no need to support hotplugging in the imx-rngc driver. We use module_platform_driver_probe, the probe function will only be called at startup. Signed-off-by: Martin Kaiser --- drivers/char/hw_random/imx-rngc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hw_random/imx-rngc.c b/drivers/char/hw_random/imx-rngc.c index 9c6988c658e2..c807fdbd22ba 100644 --- a/drivers/char/hw_random/imx-rngc.c +++ b/drivers/char/hw_random/imx-rngc.c @@ -224,7 +224,7 @@ static void imx_rngc_cleanup(struct hwrng *rng) imx_rngc_irq_mask_clear(rngc); } -static int imx_rngc_probe(struct platform_device *pdev) +static int __init imx_rngc_probe(struct platform_device *pdev) { struct imx_rngc *rngc; int ret;