From patchwork Tue Mar 10 21:27:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Belisko X-Patchwork-Id: 5980691 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6BEFCBF440 for ; Tue, 10 Mar 2015 21:28:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ADE8E2024F for ; Tue, 10 Mar 2015 21:28:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C35FB20220 for ; Tue, 10 Mar 2015 21:28:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753624AbbCJV2k (ORCPT ); Tue, 10 Mar 2015 17:28:40 -0400 Received: from mail-wg0-f47.google.com ([74.125.82.47]:33858 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753611AbbCJV2H (ORCPT ); Tue, 10 Mar 2015 17:28:07 -0400 Received: by wgha1 with SMTP id a1so4868928wgh.1; Tue, 10 Mar 2015 14:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=poRI7vFjG1fKhBTcC5yh5L6T6auqf8kKedpfbC6CAqQ=; b=SLZ7pQbuLQgPPMlJ5wuYFZa02o8AUF3nPZ5rceWxRWXsNUinmb88WjRB2rS3ffS4zY FT4b/W+r6dWbRCrPQKcXkiZRwfhO3U8FKMLWegEnyvS8ZZbbz4vPux+kTuRJL3wTcd1q ykWpeSVgKQc38R6iNP/Bz+v8OBZiLW8rcSCP179ZKdidvI1FQw9mTRXSmzycgwezye1n c/cM04niVoVmlwz3YQVlzclnVHOb6ksRnH9kW3GFoJQWkbd0XwmPLQlkYe8Yqm7ixQfw 2CnX9c3HX8/ClfqSrDDYSCDnNktJQOeLqLcTE1h8h/4vVnsIoqFFHrINJAazSzkMKyqO FBTA== X-Received: by 10.194.208.229 with SMTP id mh5mr51735415wjc.108.1426022885786; Tue, 10 Mar 2015 14:28:05 -0700 (PDT) Received: from marek.lan (ip-85.163.101.103.o2inet.sk. [85.163.101.103]) by mx.google.com with ESMTPSA id nb18sm3311653wic.3.2015.03.10.14.28.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Mar 2015 14:28:05 -0700 (PDT) From: Marek Belisko To: bcousson@baylibre.com, tony@atomide.com, sre@kernel.org, dbaryshkov@gmail.com, dwmw2@infradead.org Cc: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, hns@goldelico.com, Marek Belisko Subject: [PATCH v4 5/6] power: twl4030_madc_battery: Add of_twl4030_madc_match to MODULE_DEVICE_TABLE Date: Tue, 10 Mar 2015 22:27:26 +0100 Message-Id: <1426022847-30912-6-git-send-email-marek@goldelico.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1426022847-30912-1-git-send-email-marek@goldelico.com> References: <1426022847-30912-1-git-send-email-marek@goldelico.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When twl_4030_madc_battery is build as module, MODULE_DEVICE_TABLE allow the module to be auto-loaded since the module will match the devices instantiated from device tree. Signed-off-by: Marek Belisko --- drivers/power/twl4030_madc_battery.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/power/twl4030_madc_battery.c b/drivers/power/twl4030_madc_battery.c index 4bcb4a9..3e0005d 100644 --- a/drivers/power/twl4030_madc_battery.c +++ b/drivers/power/twl4030_madc_battery.c @@ -252,6 +252,8 @@ static const struct of_device_id of_twl4030_madc_match[] = { {}, }; +MODULE_DEVICE_TABLE(of, of_twl4030_madc_match); + #else static struct twl4030_madc_bat_platform_data * twl4030_madc_dt_probe(struct platform_device *pdev)