From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753901AbdK3R4W (ORCPT ); Thu, 30 Nov 2017 12:56:22 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:46105 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753296AbdK3R4V (ORCPT ); Thu, 30 Nov 2017 12:56:21 -0500 X-Google-Smtp-Source: AGs4zMaj7BQdxwhJLPAuO9qqXUn+jQ7v5ovCfRDwMfcWiKFYboOM0ps/nc3zXHdY5kRMdZf89BT5CQ== From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Fabio Estevam , Javier Martinez Canillas , Jaroslav Kysela , alsa-devel@alsa-project.org, Mark Brown , Takashi Iwai , Liam Girdwood , Peter Rosin Subject: [PATCH] ASoC: tfa9879: Export OF device ID as module alias Date: Thu, 30 Nov 2017 18:56:16 +0100 Message-Id: <20171130175616.29073-1-javierm@redhat.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The I2C core always reports a MODALIAS of the form i2c: even if the device was registered via OF, this means that exporting the OF device ID table device aliases in the module is not needed. But in order to change how the core reports modaliases to user-space, it's better to export it. Before this patch: $ modinfo sound/soc/codecs/snd-soc-tfa9879.ko | grep alias alias: i2c:tfa9879 After this patch: $ modinfo sound/soc/codecs/snd-soc-tfa9879.ko | grep alias alias: i2c:tfa9879 alias: of:N*T*Cnxp,tfa9879C* alias: of:N*T*Cnxp,tfa9879 Signed-off-by: Javier Martinez Canillas --- sound/soc/codecs/tfa9879.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/tfa9879.c b/sound/soc/codecs/tfa9879.c index f8dd67ca0744..e7ca764b5729 100644 --- a/sound/soc/codecs/tfa9879.c +++ b/sound/soc/codecs/tfa9879.c @@ -316,6 +316,7 @@ static const struct of_device_id tfa9879_of_match[] = { { .compatible = "nxp,tfa9879", }, { } }; +MODULE_DEVICE_TABLE(of, tfa9879_of_match); static struct i2c_driver tfa9879_i2c_driver = { .driver = { -- 2.14.3