From patchwork Wed Nov 30 16:09:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Moysan X-Patchwork-Id: 13060055 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 DEB7BC433FE for ; Wed, 30 Nov 2022 16:10:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8230ZvoH7s+g6h3K3M1nPfW34xjMkC0kkC/r9LvhbIc=; b=B/pk6a5fZJuOj2 RYZReh3koW3E47Ok1EoqzoQBGahXxPvU21k2cuDs/Vu2L0yTnAXRS553ugahCVvRJ1abygv2ixriG E2OFK/capaUFROMJKEOpyMkMFB9P7l32Sgh/OcG5OPoHJv+TqQpt1KP+kgcZSVe2PxDpR4JHfuL+r lx6JgmZB4ORscLVWVEVmtaSTGAcIqmXEOKvVmJu1hmMsXB96QtGmT6zYHk/NOGjJcR1yQ4zfFahN7 cGeCJVXvWAqyqfddDPi8GlNN86WUmUTDKOsTgxoOOV0uShAqTj2y7fsyyDCjviwwunyYnoSknc9Ze w9ESz4UhANOgWxnOsvzg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0Peh-000JbZ-8M; Wed, 30 Nov 2022 16:09:51 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0Ped-000JVT-Hk for linux-arm-kernel@lists.infradead.org; Wed, 30 Nov 2022 16:09:49 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AUC9m16017210; Wed, 30 Nov 2022 17:09:27 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=c+N0sO42WJ7Zhqj8Bl7BWiO54s59p6fiZBwxdraw+dA=; b=j4yfgOkxjvQiBvmp1Xcn3WsVtQNwEW8mKsEkGo41bRJKWPjtdp4HLgsi0g3i39MlBIGN T2ps/HFikvxJ34CV+QI7gSwNdy/wLIt4frXJiNqP4SJndtRCYUvQX5T6Y93sM+wam9Kt 7k+PwMjVYOE3nRuTHVsDGw2igeJAXjWCej9GdkkuTcOxb3j7JTGb5W6p4T38F6Iqx3Qb GYVmTDXk07s/kdxlUJWy+r6we1kygBL+CK+08VKilwB3vT48PowmqFp7Zt21RODIJIZN +9Gvk2TA78OBBeDk9u95AzJs3QS0FwChtl2+2TRmmCzSxVs4XexPhBGgOD262Owuqf0R XA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3m5krgqf6d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Nov 2022 17:09:27 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 12B09100034; Wed, 30 Nov 2022 17:09:21 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 0BD6622FA40; Wed, 30 Nov 2022 17:09:21 +0100 (CET) Received: from localhost (10.252.12.173) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.13; Wed, 30 Nov 2022 17:09:20 +0100 From: Olivier Moysan To: Jonathan Cameron , Lars-Peter Clausen , Maxime Coquelin , Alexandre Torgue CC: Olivier Moysan , , , , Subject: [PATCH] iio: adc: stm32-dfsdm: fill module aliases Date: Wed, 30 Nov 2022 17:09:04 +0100 Message-ID: <20221130160904.77617-1-olivier.moysan@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.252.12.173] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-30_04,2022-11-30_02,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221130_080948_060451_BA899A32 X-CRM114-Status: GOOD ( 13.92 ) 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 When STM32 DFSDM driver is built as module, no modalias information is available. This prevents module to be loaded by udev. Add MODULE_DEVICE_TABLE() to fill module aliases. Signed-off-by: Olivier Moysan --- drivers/iio/adc/stm32-dfsdm-adc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-dfsdm-adc.c index 6d21ea84fa82..a428bdb567d5 100644 --- a/drivers/iio/adc/stm32-dfsdm-adc.c +++ b/drivers/iio/adc/stm32-dfsdm-adc.c @@ -1520,6 +1520,7 @@ static const struct of_device_id stm32_dfsdm_adc_match[] = { }, {} }; +MODULE_DEVICE_TABLE(of, stm32_dfsdm_adc_match); static int stm32_dfsdm_adc_probe(struct platform_device *pdev) {