Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030252AbcJQQkk (ORCPT ); Mon, 17 Oct 2016 12:40:40 -0400 Received: from mail-oi0-f54.google.com ([209.85.218.54]:33410 "EHLO mail-oi0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030225AbcJQQkb (ORCPT ); Mon, 17 Oct 2016 12:40:31 -0400 MIME-Version: 1.0 In-Reply-To: <1476719053-17600-4-git-send-email-javier@osg.samsung.com> References: <1476719053-17600-1-git-send-email-javier@osg.samsung.com> <1476719053-17600-4-git-send-email-javier@osg.samsung.com> From: Kevin Hilman Date: Mon, 17 Oct 2016 09:40:30 -0700 Message-ID: Subject: Re: [PATCH 3/5] [media] rc: meson-ir: Fix module autoload To: Javier Martinez Canillas Cc: lkml , Mauro Carvalho Chehab , Martin Blumenstingl , Neil Armstrong , Carlo Caione , linux-amlogic , linux-arm-kernel , linux-media@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 919 Lines: 26 On Mon, Oct 17, 2016 at 8:44 AM, Javier Martinez Canillas wrote: > If the driver is built as a module, autoload won't work because the module > alias information is not filled. So user-space can't match the registered > device with the corresponding module. > > Export the module alias information using the MODULE_DEVICE_TABLE() macro. > > Before this patch: > > $ modinfo drivers/media/rc/meson-ir.ko | grep alias > $ > > After this patch: > > $ modinfo drivers/media/rc/meson-ir.ko | grep alias > alias: of:N*T*Camlogic,meson-gxbb-irC* > alias: of:N*T*Camlogic,meson-gxbb-ir > alias: of:N*T*Camlogic,meson8b-irC* > alias: of:N*T*Camlogic,meson8b-ir > alias: of:N*T*Camlogic,meson6-irC* > alias: of:N*T*Camlogic,meson6-ir > > Signed-off-by: Javier Martinez Canillas Acked-by: Kevin Hilman