From patchwork Tue Jul 12 16:09:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2106 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7D6033F066 for ; Tue, 12 Jul 2022 18:11:33 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id y18-20020a056402441200b0043564cdf765sf6497142eda.11 for ; Tue, 12 Jul 2022 09:11:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657642293; cv=pass; d=google.com; s=arc-20160816; b=Qal1WdFpU0vnWaViiYq+Ng7EfvvGmCNM0ame8ntQSbn4HLncU8w/us1hkEhX2kWTA5 sVAB/SMU/jW6CN8BdFOTozZs0WXaV/hNm86hM5jBghVrCjGI/YOzEqzVyeIFHHayg6e7 O680sBqdQTkhElzCcEnYzSpy5zP2rMaWIkzhGuGxaYoAqSBdVvkh230ApTP8r/w1L0t9 PiJHTxLZniz17VnBXNgWK6MW9/BUrY9zX3/3IsFThmoBqonqOMfWky4qAaDnj7IDEzi4 yEzeU7z+gYJ4lzVhHbe2aNk++gYM0FUzaTvrTQJsthhtLPGfp5PJV7FesGLpQr9JYhF2 48dA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=CVN9UVe8Rz1oTKTcFS8dC8nKd1r74OnH4LUEzYhpRaI=; b=cz1iLSwa2bkNMoCxHZ9FpIPVoypWjkyq0foDkkJsBSnpsEYm7/DmCxCTKRFp/+z9Os qew8u+EU4QHQ2AkWV5QXeq9i4+y9hIDH0+oLRrGFFgYt+dFlwwR5ZYHnSl/keX1iTdqO 9OMdWgOUODISi8RM1/hiU1juyddw8JO3yyplXdTfTGKOqFvtailWXUzjaE71Mg154OQH X9XllBoleruERghBWVcWf/P3HlpKda1lAlPiTWhgtTeVKe3scOVYPeaXO0AsDbaR2tuN ikUXYLUcF2esIGlnhXO1H0vlVUoAC7lLUhllWT92k8KyyUBnjiMsCspnakSQflWksDsR j16g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pI3NbHHj; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=CVN9UVe8Rz1oTKTcFS8dC8nKd1r74OnH4LUEzYhpRaI=; b=lLhvTQ/DsaKZbd/s8DQOgq578f9yiGxRqoQsr6TI4pLBgCPtIUGmJGHKQRZtFSqHuq 7ZrNpr43ll5gzhcKZ/C44UhW5Uwp93pKjvnSJbOkUB1daFf0hfovcPUeSidR1vQwjGJf Bo6fkT6YQB7Gf0nKn+hPEPRnKhgaL92Oetmus= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=CVN9UVe8Rz1oTKTcFS8dC8nKd1r74OnH4LUEzYhpRaI=; b=3NRCLp1GLj+mVP7dW02dAqE8dHu2Q8ULR89tZ/qSbewzUri44BU61W5kHB0gDk8O16 ButlPqJvpHOKw6Q/oYzgUH3V2/glz/sOml5UrmkkFSaiTwwtZgKQ86qZEKyAbTa1ijt1 WNZDspfZDpTXJqaNQz0pcojKlO7IUv+1Eu9olxdyhPqytQh7cXcCX0D5Y4ALJR6RX9ML 1IW1ppO33LP8u5RKR8hKXbH8ktDrPqyFa0+PnAEmmWD75eRuElGHtg2gEQ2nyrKS6vbI 4kQdeL2RMyF4lXW+7B4leXwQAphn/dRlFWHUc/luSkpRuJqbWEB8FfgV65Cd0kYYwuQv qlww== X-Gm-Message-State: AJIora8cnP8TWNGlM5WXAxKHd3xt5N7FOa4OXh9IJx0sRiOs9+6jd2gx 3GPBEZUFgGw7ItV/Ox+idkZ6uSlg X-Google-Smtp-Source: AGRyM1uRWhQL+fwUp4SmsKWzknj7BgQAbT4iLPEelBHUBzBDzs4Q+2/npQws9WXMFXkDdm8RgoX7nA== X-Received: by 2002:aa7:c98f:0:b0:43a:71c2:3f7e with SMTP id c15-20020aa7c98f000000b0043a71c23f7emr33259732edt.60.1657642293140; Tue, 12 Jul 2022 09:11:33 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:906:2ad6:b0:6fe:976a:7a5 with SMTP id m22-20020a1709062ad600b006fe976a07a5ls1710286eje.7.gmail; Tue, 12 Jul 2022 09:11:32 -0700 (PDT) X-Received: by 2002:a17:906:c5:b0:722:e65d:770d with SMTP id 5-20020a17090600c500b00722e65d770dmr24603735eji.330.1657642292004; Tue, 12 Jul 2022 09:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657642292; cv=none; d=google.com; s=arc-20160816; b=dMzGCumGycrnfsbLbdydL0jEn+TccNqZhtZ3yZ93wITpNXLZqbj4nzcSvUUA9cz9NW 3o8k6mKg/kB7KMN70NI5KOn+a6yqQ9L+JusN61Jak0vW+CS6gmW+AEHPqlQqYNLMoq8/ h3UODT33XcHRl+Mdsb2ZkrucSeQ1JsTVKYEqA4oia5hwlVUZozyJMIZ08H6QxIGQYLew SpztcvwSu/w00ZqsZVoZZajOjk/dH67ngPQGfqdXAr7WHcWFQa6O2HixYkuLNFvUVvLK 7/z5VX89SPnIV8dpzmEW21A2y/HpHdGk8iMUEqxAKPff2PbuO4mNiJlswu/mL3Lyhf4E 4WPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=21nZyc3bYwF/2+gU25HHeO3ZzKasf2bJUi7S16b1eWU=; b=iQOcwGE8vG3h6HvqAA73b086RZPTn2zkzWTfry2wDlBm5ZEkna+F//NfB8roktn4td fuefiJvU75ujR1wks/QPyezHhsbB2B9nj32JgjcXy0pgL54nGodMMLGgVjB0IXOeWgHZ Tn5NE9g/52fpgzxt5RW5JY+8t2P+wAf+4xfPmuOsDOU8pat2milePjeiXpVBvf/Dswgs WXdhaRc+rJ23rc/5GU6+QY8XzsCtkF2GSogvssqxFugAbaDiYbz33H90XARI/XPsYIOi dYw9pVqf9mtEaAZBvtgpDcCqPX88qf3KQanUmOdpxkCjj3d5nbshpzOdbYzugX392jib /1XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pI3NbHHj; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id si13-20020a170906cecd00b0072a9a56d2a1sor2939540ejb.129.2022.07.12.09.11.31 for (Google Transport Security); Tue, 12 Jul 2022 09:11:31 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:906:938a:b0:726:942a:54e8 with SMTP id l10-20020a170906938a00b00726942a54e8mr24075139ejx.225.1657642291745; Tue, 12 Jul 2022 09:11:31 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-80-116-90-174.retail.telecomitalia.it. [80.116.90.174]) by smtp.gmail.com with ESMTPSA id h4-20020a1709066d8400b00722ea7a7febsm3911498ejt.194.2022.07.12.09.11.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 09:11:31 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Michael Trimarchi , stable@vger.kernel.org, Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Vinod Koul , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 1/2] dmaengine: mxs: use platform_driver_register Date: Tue, 12 Jul 2022 18:09:07 +0200 Message-Id: <20220712160909.2054141-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pI3NbHHj; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Driver registration fails on SOC imx8mn as its supplier, the clock control module, is probed later than subsys initcall level. This driver uses platform_driver_probe which is not compatible with deferred probing and won't be probed again later if probe function fails due to clock not being available at that time. This patch replaces the use of platform_driver_probe with platform_driver_register which will allow probing the driver later again when the clock control module will be available. Fixes: a580b8c5429a ("dmaengine: mxs-dma: add dma support for i.MX23/28") Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi Cc: stable@vger.kernel.org --- Changes in v5: - Update the commit message. - Create a new patch to remove the warning generated by this patch. Changes in v4: - Restore __init in front of mxs_dma_probe() definition. - Rename the mxs_dma_driver variable to mxs_dma_driver_probe. - Update the commit message. - Use builtin_platform_driver() instead of module_platform_driver(). Changes in v3: - Restore __init in front of mxs_dma_init() definition. Changes in v2: - Add the tag "Cc: stable@vger.kernel.org" in the sign-off area. drivers/dma/mxs-dma.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c index 994fc4d2aca4..18f8154b859b 100644 --- a/drivers/dma/mxs-dma.c +++ b/drivers/dma/mxs-dma.c @@ -839,10 +839,6 @@ static struct platform_driver mxs_dma_driver = { .name = "mxs-dma", .of_match_table = mxs_dma_dt_ids, }, + .probe = mxs_dma_probe, }; - -static int __init mxs_dma_module_init(void) -{ - return platform_driver_probe(&mxs_dma_driver, mxs_dma_probe); -} -subsys_initcall(mxs_dma_module_init); +builtin_platform_driver(mxs_dma_driver); From patchwork Tue Jul 12 16:09:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2107 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B7B663F066 for ; Tue, 12 Jul 2022 18:11:34 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id x21-20020a05640226d500b0043abb7ac086sf6474638edd.14 for ; Tue, 12 Jul 2022 09:11:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657642294; cv=pass; d=google.com; s=arc-20160816; b=O32H8VIotwF/CpQVGdX3Z9I116KuVpX3EmLh26fk8Fr7apmHR9OZep1yTizu1EV80X IOsTIItutS+cxwSLJvRMsDm5NwQ/L0VvRN/hMepFWidQ7+rMnhhnAyjzCPeFsjc/ASOp 6zgf6kiGMcT6Y6xsTSbOkxV9FYHWPRDpTgo2yERKcARWnis+NeBiWm6gO0M9iVEgJTrf 3eJJCjlU+sbIAzHp6HTO1lTosNOCay+a6o2WvMkxUM2rd2Jbh/dhMaVKoKe8/djlhJLL vDojwG92FKp0tM9Nd1vDx6wvaXCJ6nQXM6lULkiQ9MTx8IEsUtVndGVXY6g0NlFxk/7F deZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=hyKPEyeyYNbBImc6I4flV/4/7uFJATmhCjJmKmsZpIA=; b=GbqPZPz+8aez3lOPYfCVxpxGQcOErZIuKc9qDUPEud0bJjuzoOgPtQS1sbD+WJNlnh uyXHPP2G6Afqcv+CZpNdVxeCriOTUX4i0xAhXuLqAwZARJVfxsMvddaxzXGcZxXVTU9C eylWoqMT5z/KH3bVNJLcI3J4PZ9Ak3ErRmP6CbNSq1dsJ7QpzCQHt4uyiS3xl7DrmRzP vD7bBURWsYqGbestWUsow9cKzx0AL0p/TGsVnkjM9JL5GI93R/5t4Z3slHMjqiF6tFLS t6rRbs5sZw1R7gug4bETxg4+nA2lNBZcKAlC7hMT1IA7vzHiSw3Hyil+tYUXJqskxBXW coEQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qvnGgeO9; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=hyKPEyeyYNbBImc6I4flV/4/7uFJATmhCjJmKmsZpIA=; b=WcJmGQCUUyy+wkCofJdKW+sQqKdYlZbSQc9pP2EzLTr9VVNWQo+Stqio1MHEV5Hfz4 CL1sbDI25M1+Hj2qyZ++9Oh8vedJeJsoaV7/mguCfVdo4W0VmSmN9sNI0rRthzmzVgxS 9lERs80StVKyJ3B04pbIS2ggi3/PFT6ZLjVq4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=hyKPEyeyYNbBImc6I4flV/4/7uFJATmhCjJmKmsZpIA=; b=SwGxgyjgrYMlR1yjp18//XEV0E0hC3Jr7hEYFcWMIr1WeWerWXIGdCawvTTxev/dOB crw5yl/efz6f3gtB360x/T9GlIKxsK16kNfgINR1qhfdi9reh/Naoi86uue0+6+LIDBa D7Oj80F0f+gvbHnwFF36f+Pe6ckfFFq/zQEPRXCgCcAgPkjv0JHmo0nujWbxfPKWfwjt fGWB0t90NGdi/1wy1S/OPmh2BzyZ1r/iivZGqsO5JJNdGVKwY3F0ng/agV9GaxRhRJzX D+LdL0q9Mhb64L2ATsw2BZmd5sfDgTq2jj2rfbPMl3ilsMKFG0b9My5xIESXv1mvKnpe fstQ== X-Gm-Message-State: AJIora8VCy9SHKHxetyOM4bLecODdvUk649fxqpj9FSxpwcQtdC9+6Iy qyBcylg0CNfWSlSIepN/EwpN49xI X-Google-Smtp-Source: AGRyM1vYwsFDZAACaJwDWYL7OVa/5XxxJYJWafPHFJyzCRoHu8ZvPj2INg2dUl48Ua8LtWlPcDsWFg== X-Received: by 2002:a05:6402:1909:b0:43a:64bb:9f27 with SMTP id e9-20020a056402190900b0043a64bb9f27mr33787261edz.24.1657642294365; Tue, 12 Jul 2022 09:11:34 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:906:70cf:b0:6fe:d027:3c1f with SMTP id g15-20020a17090670cf00b006fed0273c1fls1722152ejk.2.gmail; Tue, 12 Jul 2022 09:11:33 -0700 (PDT) X-Received: by 2002:a17:906:9752:b0:722:f10e:b464 with SMTP id o18-20020a170906975200b00722f10eb464mr23579095ejy.539.1657642293209; Tue, 12 Jul 2022 09:11:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657642293; cv=none; d=google.com; s=arc-20160816; b=hrvIi0CfFAwxweLqeMMPTHb0hgcqEmahWAqQIEfQcv6gOw8grCkIYT5qgVzm/2f9QA rQ2TAFIJAZq3P+2EBMI56PwqWomLhKYoDdJb6PNtllqKLHVA2Tzeq8P+rRdTCoSeJyNN 6PFp/3AoVhoT1Ct92yp9nN5eakQaOMOJbBfP0J2ZHx7mBlDWAgO/Tr2/ZK3Z5WwXhSgi Lg8+GMUSQOkgrf4G3S/QU62vncAnINHTaDdizYoO9YVGYMwLSWSUwsRHKYVoB6U+msRO VgH2s7khz8BrG0QLfaEw5BVfpQDlXRiiJcwnBSW5CrtJWnA4rnJytEPwqgcqUpkcYvU9 wdnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=NvLw5KU+55jz8ItVCImcVo81PfvmbTqj67db51rQx28=; b=s05hYph2mQJIlBEnIc3Q5xMSKn8ArtT+7KLUVcZvmBXYIKs8dsMlMnJ34YnNXh73MZ WOQkL5s7rrkGDg11CY1w2liIVLj5OTueTWN5SbrhrduWByBV9d/d6rED2+Qf1hyO+I/p bYQ6ORMP8r47+XEd4RpzrqmTzK2G0Msxmo4afvt13dKjOuyua/arlfVBEdbUFxYn6zAO PcPCH0sE3eAQb43oVlLb7jj/uNTh4vSqp+HFXlpphEHMe01tk8H0aOw8Y4R1bRuxy++V 7J3nkHuPHWTOl6G9+nk1ftjAPsx/1LM6ZtQt75AL0fG9H27QdFZnSEjcOVpE9mZdElWW 9s8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qvnGgeO9; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id n7-20020a17090695c700b00710f0bae981sor2767599ejy.125.2022.07.12.09.11.33 for (Google Transport Security); Tue, 12 Jul 2022 09:11:33 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:6e05:b0:72a:a141:962 with SMTP id sd5-20020a1709076e0500b0072aa1410962mr24563519ejc.545.1657642293037; Tue, 12 Jul 2022 09:11:33 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-80-116-90-174.retail.telecomitalia.it. [80.116.90.174]) by smtp.gmail.com with ESMTPSA id h4-20020a1709066d8400b00722ea7a7febsm3911498ejt.194.2022.07.12.09.11.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 09:11:32 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Michael Trimarchi , stable@vger.kernel.org, Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Vinod Koul , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 2/2] dmaengine: mxs: fix section mismatch Date: Tue, 12 Jul 2022 18:09:08 +0200 Message-Id: <20220712160909.2054141-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220712160909.2054141-1-dario.binacchi@amarulasolutions.com> References: <20220712160909.2054141-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qvnGgeO9; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The patch was suggested by the following modpost warning: WARNING: modpost: vmlinux.o(.data+0xa3900): Section mismatch in reference from the variable mxs_dma_driver to the function .init.text:mxs_dma_probe() The variable mxs_dma_driver references the function __init mxs_dma_probe() If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable: *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi Cc: stable@vger.kernel.org --- (no changes since v1) drivers/dma/mxs-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c index 18f8154b859b..a01953e06048 100644 --- a/drivers/dma/mxs-dma.c +++ b/drivers/dma/mxs-dma.c @@ -834,7 +834,7 @@ static int __init mxs_dma_probe(struct platform_device *pdev) return 0; } -static struct platform_driver mxs_dma_driver = { +static struct platform_driver mxs_dma_driver __initdata = { .driver = { .name = "mxs-dma", .of_match_table = mxs_dma_dt_ids,