Message ID | 1431530282-10672-2-git-send-email-javier.martinez@collabora.co.uk |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBDF63NFOVEMBBRGWZWVAKGQE6HZUNVA@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-la0-x240.google.com (mail-la0-x240.google.com [IPv6:2a00:1450:4010:c03::240]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 33888140D30 for <incoming@patchwork.ozlabs.org>; Thu, 14 May 2015 01:18:31 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b=NSHWRRRV; dkim-atps=neutral Received: by labgd6 with SMTP id gd6sf16951379lab.0 for <incoming@patchwork.ozlabs.org>; Wed, 13 May 2015 08:18:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:content-type:precedence:mailing-list:list-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe; bh=Yd7DDsXRxg/9lsqffhXYDARbO16GHN0rhA+YAw9WIf8=; b=NSHWRRRV1SMzeJTCK6GUCFryhJ2D6cg0JtoYHV93YlprdCDut7nBGVbP14F0Yy85Xf IRh7Nq0+T+872lHPJ/Mx3P5bF9L1C02YiT3lnKW5MWR4H1sCqoc+1JQ+TeG++Weo5Sea S9Oem/WnIX6QrWwBJuB3wl2LTMRMoFdS+a6AkHOn7RMSyXem7uhWl3+Xh9PKSTe21jGN qjN8/cllhi5l+IaT3ECVpbpQvQej8EhEtgqFDOalYxkxuAcGfCxEFZ563h8vSCETliCD 7xpSR+abNCnkzQV99TiLpsOTz/+K2GKEWukOB9t+n2KSJRqsH/Kl8aYlLX4g/zNT3BoA NQxA== X-Received: by 10.152.5.100 with SMTP id r4mr291534lar.13.1431530308491; Wed, 13 May 2015 08:18:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.152.30.37 with SMTP id p5ls251888lah.9.gmail; Wed, 13 May 2015 08:18:27 -0700 (PDT) X-Received: by 10.112.51.68 with SMTP id i4mr14542124lbo.13.1431530307954; Wed, 13 May 2015 08:18:27 -0700 (PDT) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk. [93.93.135.160]) by gmr-mx.google.com with ESMTPS id g5si301609wix.1.2015.05.13.08.18.27 for <rtc-linux@googlegroups.com> (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 13 May 2015 08:18:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of javier.martinez@collabora.co.uk designates 93.93.135.160 as permitted sender) client-ip=93.93.135.160; Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: javier) with ESMTPSA id E236F600746 From: Javier Martinez Canillas <javier.martinez@collabora.co.uk> To: Alexandre Belloni <alexandre.belloni@free-electrons.com> Cc: Alessandro Zummo <a.zummo@towertech.it>, Olof Johansson <olof@lixom.net>, Doug Anderson <dianders@chromium.org>, Krzysztof Kozlowski <k.kozlowski@samsung.com>, Chanwoo Choi <cw00.choi@samsung.com>, rtc-linux@googlegroups.com, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Martinez Canillas <javier.martinez@collabora.co.uk> Subject: [rtc-linux] [PATCH 1/2] rtc: max77686: Report platform modalias to fix module autoload Date: Wed, 13 May 2015 17:18:01 +0200 Message-Id: <1431530282-10672-2-git-send-email-javier.martinez@collabora.co.uk> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1431530282-10672-1-git-send-email-javier.martinez@collabora.co.uk> References: <1431530282-10672-1-git-send-email-javier.martinez@collabora.co.uk> X-Original-Sender: javier.martinez@collabora.co.uk X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of javier.martinez@collabora.co.uk designates 93.93.135.160 as permitted sender) smtp.mail=javier.martinez@collabora.co.uk Reply-To: rtc-linux@googlegroups.com Content-Type: text/plain; charset=UTF-8 Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: <rtc-linux.googlegroups.com> X-Google-Group-Id: 712029733259 List-Post: <http://groups.google.com/group/rtc-linux/post>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux Sender: rtc-linux@googlegroups.com List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+712029733259+unsubscribe@googlegroups.com>, <http://groups.google.com/group/rtc-linux/subscribe> |
diff --git a/drivers/rtc/rtc-max77686.c b/drivers/rtc/rtc-max77686.c index 7632a87784c3..7184a0eda793 100644 --- a/drivers/rtc/rtc-max77686.c +++ b/drivers/rtc/rtc-max77686.c @@ -511,6 +511,7 @@ static const struct platform_device_id rtc_id[] = { { "max77686-rtc", 0 }, {}, }; +MODULE_DEVICE_TABLE(platform, rtc_id); static struct platform_driver max77686_rtc_driver = { .driver = {
If the rtc-max77686 driver is built as a module, modalias information is not filled so the module is not autoloaded. Use the MODULE_DEVICE_TABLE() macro to export the platform ID table so the module contains that data. Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk> --- drivers/rtc/rtc-max77686.c | 1 + 1 file changed, 1 insertion(+)