From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BBF3C4708D for ; Sat, 3 Dec 2022 17:23:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229791AbiLCRXx (ORCPT ); Sat, 3 Dec 2022 12:23:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbiLCRXv (ORCPT ); Sat, 3 Dec 2022 12:23:51 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 246FE1E700; Sat, 3 Dec 2022 09:23:49 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B9812B80689; Sat, 3 Dec 2022 17:23:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 218F0C433C1; Sat, 3 Dec 2022 17:23:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670088226; bh=iTtdW6gDpKHLLzKCX31xhKgEEH+3KoFhhXGmXIO5ZP8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=u+BEgHWXH5ITAwz3jXgk74FH9/Gb25v/9qpiVZjuhkSjkKCCxC0WqKDHhfSoEehp0 OZR+rOagvJcew3j4vmZSM4+bXjb44hWLLYp5W9SgnLMUea/u2PVqKFbuJ1WbqjyD9v 8YHVekiyvg5oxz6p5rgsajsL1shvgSj9ilzlnJFuQIRbY0bIRbnN8JjkknRMP7NaoI fhYr3xyvOh55rHcRYWzoDVHeRmKhy6s2bRAK+Z2Uju2lXLMYZAB63RdZ9isq36WIge IVwx0U+Uwaz/b7vRn57R4wyFtsKEa42bvqhHfIPNKklNf1Hvrzyza9XEAW23Fv8JYE RjDy6sNGMXfgg== Date: Sat, 3 Dec 2022 17:36:30 +0000 From: Jonathan Cameron To: Olivier Moysan Cc: Lars-Peter Clausen , Maxime Coquelin , Alexandre Torgue , Mark Brown , "Arnaud Pouliquen" , Jonathan Cameron , , , , Subject: Re: [PATCH v2] iio: adc: stm32-dfsdm: fill module aliases Message-ID: <20221203173630.4b4de6c7@jic23-huawei> In-Reply-To: <20221202152848.45585-1-olivier.moysan@foss.st.com> References: <20221202152848.45585-1-olivier.moysan@foss.st.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Dec 2022 16:28:48 +0100 Olivier Moysan wrote: > 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. > > Fixes: e2e6771c6462 ("IIO: ADC: add STM32 DFSDM sigma delta ADC support") > Signed-off-by: Olivier Moysan Applied to the fixes-togreg branch of iio.git. Note this will probably go upstream just after the merge window closes now. Thanks, Jonathan > --- > Changes in v2: Add Fixes tag > --- > 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) > {