Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757147AbbFQPBO (ORCPT ); Wed, 17 Jun 2015 11:01:14 -0400 Received: from demumfd002.nsn-inter.net ([93.183.12.31]:51821 "EHLO demumfd002.nsn-inter.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757088AbbFQPBL (ORCPT ); Wed, 17 Jun 2015 11:01:11 -0400 Subject: Re: [PATCH] driver/i2c/mux: Add register based mux i2c-mux-reg To: ext Paul Bolle , York Sun References: <1434475692-4611-1-git-send-email-yorksun@freescale.com> <1434531244.2069.111.camel@x220> Cc: wsa@the-dreams.de, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Peter Korsgaard From: Alexander Sverdlin Message-ID: <55818BAB.5090605@nokia.com> Date: Wed, 17 Jun 2015 17:00:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 In-Reply-To: <1434531244.2069.111.camel@x220> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-size: 836 X-purgate-ID: 151667::1434553261-000058B4-587A06E6/0/0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1060 Lines: 26 Hi! On 17/06/15 10:54, ext Paul Bolle wrote: >> +MODULE_ALIAS("platform:i2c-mux-reg"); > As far as I understand it, this alias is only useful if there's a > corresponding struct platform_device, somewhere. Ie, this alias needs a > platform_device that will fire of a "MODALIAS=platform:i2c-mux-reg" > uevent when it's created. (I don't know exactly how all that works, so > I'm handwaving quite a bit here.) That would be platform_device with a > "i2c-mux-reg" name. > > Did I get this right? Because then I think this MODULE_ALIAS() isn't > needed, as I couldn't find such a corresponding platform_device. You do not see the platform_device, because there are no users yet, put this MODULE_ALIAS() is perfectly fine, it will allow automatic module loading in non-DT case. -- Best regards, Alexander Sverdlin. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/