Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934029AbcJUMzr (ORCPT ); Fri, 21 Oct 2016 08:55:47 -0400 Received: from mail-qk0-f173.google.com ([209.85.220.173]:33874 "EHLO mail-qk0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933207AbcJUMzn (ORCPT ); Fri, 21 Oct 2016 08:55:43 -0400 MIME-Version: 1.0 In-Reply-To: <1476823442-31104-2-git-send-email-javier@osg.samsung.com> References: <1476823442-31104-1-git-send-email-javier@osg.samsung.com> <1476823442-31104-2-git-send-email-javier@osg.samsung.com> From: Linus Walleij Date: Fri, 21 Oct 2016 14:55:41 +0200 Message-ID: Subject: Re: [PATCH 2/2] gpio: ts4800: Fix module autoload To: Javier Martinez Canillas Cc: "linux-kernel@vger.kernel.org" , "linux-gpio@vger.kernel.org" , Alexandre Courbot 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: 742 Lines: 26 On Tue, Oct 18, 2016 at 10:44 PM, 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/gpio/gpio-ts4800.ko | grep alias > $ > > After this patch: > > $ modinfo drivers/gpio/gpio-ts4800.ko | grep alias > alias: of:N*T*Ctechnologic,ts4800-gpioC* > alias: of:N*T*Ctechnologic,ts4800-gpio > > Signed-off-by: Javier Martinez Canillas Patch applied for fixes. Yours, Linus Walleij