From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756342AbdEGWBE (ORCPT ); Sun, 7 May 2017 18:01:04 -0400 Received: from saturn.retrosnub.co.uk ([178.18.118.26]:57508 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750923AbdEGWBB (ORCPT ); Sun, 7 May 2017 18:01:01 -0400 Subject: Re: [PATCH 1/2] [PATCH 1/2] iio: adc: sun4i-gpadc-iio: Fix module autoload when PLATFORM devices are registered To: Chen-Yu Tsai , Eduardo Molinas Cc: linux-kernel , Lars-Peter Clausen , linux-iio@vger.kernel.org, Peter Meerwald-Stadler , knaack.h@gmx.de, linux-arm-kernel References: <20170501224559.21028-1-edu.molinas@gmail.com> From: Jonathan Cameron Message-ID: Date: Sun, 7 May 2017 14:45:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GH Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/05/17 03:10, Chen-Yu Tsai wrote: > On Tue, May 2, 2017 at 6:45 AM, Eduardo Molinas wrote: >> If the driver is built as a module, it won't be autloaded if the devices >> are registered via PLATFORM code because the PLATFORM device table >> entries are not exported as aliases >> >> Before the patch: >> $ modinfo drivers/iio/adc/sun4i-gpadc-iio.ko | grep alias >> $ >> >> After th patch: > > ^^ the > >> $ modinfo drivers/iio/adc/sun4i-gpadc-iio.ko | grep alias >> alias: platform:sun6i-a31-gpadc-iio >> alias: platform:sun5i-a13-gpadc-iio >> alias: platform:sun4i-a10-gpadc-iio >> >> Signed-off-by: Eduardo Molinas > > Acked-by: Chen-Yu Tsai > > Can we merge this as a fix for 4.12? Applied to fixes-togreg branch of iio.git. Thanks, Jonathan >