Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755365AbbGPQWu (ORCPT ); Thu, 16 Jul 2015 12:22:50 -0400 Received: from lb2-smtp-cloud2.xs4all.net ([194.109.24.25]:50369 "EHLO lb2-smtp-cloud2.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752244AbbGPQWs (ORCPT ); Thu, 16 Jul 2015 12:22:48 -0400 Message-ID: <1437063765.21215.18.camel@tiscali.nl> Subject: Re: [PATCH 1/2] ASoC: rockchip: Add machine driver for max98090 codec From: Paul Bolle To: Mark Brown Cc: Xing Zheng , dgreid@chromium.org, dianders@chromium.org, heiko@sntech.de, sonnyrao@chromium.org, linux-rockchip@lists.infradead.org, Liam Girdwood , Jaroslav Kysela , Takashi Iwai , linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org Date: Thu, 16 Jul 2015 18:22:45 +0200 In-Reply-To: <20150716150500.GO4039@sirena.org.uk> References: <1436930143-31361-1-git-send-email-zhengxing@rock-chips.com> <1436930143-31361-2-git-send-email-zhengxing@rock-chips.com> <1437033944.27428.11.camel@tiscali.nl> <20150716110032.GU11162@sirena.org.uk> <1437047261.28351.6.camel@tiscali.nl> <20150716125529.GG4039@sirena.org.uk> <1437056116.28351.19.camel@tiscali.nl> <20150716150500.GO4039@sirena.org.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.3 (3.16.3-2.fc22) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1104 Lines: 27 On do, 2015-07-16 at 16:05 +0100, Mark Brown wrote: > Why would this not be the case - what is the difference you beleive > this driver has to other platform drivers? It's my believe that for MODULE_ALIAS("platform:[...]") to be useful there needs to be corresponding struct platform_device. For this patch that would be a platform device named "rockchip-snd-max98090". (This is something that I try to check rather carefully, because these devices can be generated on the fly.) I'm happy to drop this believe if someone shows me another way that MODULE_ALIAS("platform:[...]") can actually be used. So, in short, the difference between this driver and other platform drivers is that, as far as I'm aware, this platform driver lacks a corresponding platform device. Probably because OF support suffices to get this module autoloaded. Thanks, Paul Bolle -- 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/