From patchwork Sun Nov 29 16:29:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Enric Balletbo Serra X-Patchwork-Id: 7718851 Return-Path: X-Original-To: patchwork-linux-fbdev@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 5A3FEBEEE1 for ; Sun, 29 Nov 2015 16:30:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 835CD20630 for ; Sun, 29 Nov 2015 16:30:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8C7B92062C for ; Sun, 29 Nov 2015 16:30:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751880AbbK2Qa0 (ORCPT ); Sun, 29 Nov 2015 11:30:26 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:37856 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751545AbbK2Qa0 (ORCPT ); Sun, 29 Nov 2015 11:30:26 -0500 Received: by wmww144 with SMTP id w144so109432837wmw.0; Sun, 29 Nov 2015 08:30:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=WSfs4KrrHp+6vugOuzFzCPGvpOB9f7js4+FGOV5xSxI=; b=q0yzGhOsM6yLLQsoeKsDxwth58yz8fE0tYy45X9MYoIAaUnVM0FdZjBfCLDgJ9qxko NBT9wZAXWPXcwrkG/0EUjk70kEZqXL1vYkCtqfeCvqpzb9W3A536RhcYv9zfjyXqjTJA cpobx4vvqrDAUnwPRNsKdKPeK8wJdgoPjkr3WzPrkG7XKk9RnambNM1PI8pdgR278nhe WleQGhU+K8ic80Plp+VTWgD1rwv0Itd9IiHQdXWK6Djp2WdJ9WfOHuvf/uHOaL0TQ2RD /KxugNnQyOzIb5LQ2py1OCzABR56t57wyb7Lo30uPynTupexIuYAvUm8uYqARJyLXBPZ Y5/Q== X-Received: by 10.194.110.164 with SMTP id ib4mr23894295wjb.15.1448814624598; Sun, 29 Nov 2015 08:30:24 -0800 (PST) Received: from localhost.localdomain ([84.236.220.225]) by smtp.gmail.com with ESMTPSA id 193sm17369285wmp.16.2015.11.29.08.30.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Nov 2015 08:30:23 -0800 (PST) From: Enric Balletbo i Serra X-Google-Original-From: Enric Balletbo i Serra To: devicetree@vger.kernel.org Cc: jingoohan1@gmail.com, lee.jones@linaro.org, plagnioj@jcrosoft.com, tomi.valkeinen@ti.com, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] backlight: tps65217_bl: Add MODULE_DEVICE_TABLE. Date: Sun, 29 Nov 2015 17:29:46 +0100 Message-Id: <1448814586-17117-1-git-send-email-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 The device table is required to load modules based on modaliases. Signed-off-by: Enric Balletbo i Serra --- Changes since last version: - Use of_match_ptr (Lee Jones) drivers/video/backlight/tps65217_bl.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/video/backlight/tps65217_bl.c b/drivers/video/backlight/tps65217_bl.c index 61d72bf..fd524ad 100644 --- a/drivers/video/backlight/tps65217_bl.c +++ b/drivers/video/backlight/tps65217_bl.c @@ -320,10 +320,19 @@ static int tps65217_bl_probe(struct platform_device *pdev) return 0; } +#ifdef CONFIG_OF +static const struct of_device_id tps65217_bl_of_match[] = { + { .compatible = "ti,tps65217-bl", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, tps65217_bl_of_match); +#endif + static struct platform_driver tps65217_bl_driver = { .probe = tps65217_bl_probe, .driver = { .name = "tps65217-bl", + .of_match_table = of_match_ptr(tps65217_bl_of_match), }, };