Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965395AbbEMPS6 (ORCPT ); Wed, 13 May 2015 11:18:58 -0400 Received: from bhuna.collabora.co.uk ([93.93.135.160]:45802 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934541AbbEMPS2 (ORCPT ); Wed, 13 May 2015 11:18:28 -0400 From: Javier Martinez Canillas To: Alexandre Belloni Cc: Alessandro Zummo , Olof Johansson , Doug Anderson , Krzysztof Kozlowski , Chanwoo Choi , rtc-linux@googlegroups.com, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Martinez Canillas Subject: [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> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1015 Lines: 29 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 --- drivers/rtc/rtc-max77686.c | 1 + 1 file changed, 1 insertion(+) 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 = { -- 2.1.4 -- 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/