From patchwork Fri Nov 13 12:19:08 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: 7611141 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0FD789F2F7 for ; Fri, 13 Nov 2015 12:19:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 35B1C2064C for ; Fri, 13 Nov 2015 12:19:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 139CF2063E for ; Fri, 13 Nov 2015 12:19:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932387AbbKMMTR (ORCPT ); Fri, 13 Nov 2015 07:19:17 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:35187 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932332AbbKMMTQ (ORCPT ); Fri, 13 Nov 2015 07:19:16 -0500 Received: by wmdw130 with SMTP id w130so26551657wmd.0; Fri, 13 Nov 2015 04:19:14 -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=MHRB5CF1C2lvO6n1LRoSzxCp/I2E+1yAYV1g9AeirtE=; b=k5fwP6kpV19eN9Pz/JnPbJhZK/Ct7kZuy931X2FgfHq2uN4aEy4TU8fKwgXkmitcyr cU6dEW3Ko6WiYT06kn96RLmw0wwHxJvyOyBaEbb6TDm0QL0Iwqxo/nqNHNa8+TZMdA/T Vp/o9DJ+wiBXvoYYzOrlyXrJ6P0aLFgBuEcJ5hgrjOLjr96slXn6UNch6zC6eIZqO2Wi PjyAOczJ12cRS8V3IqsOUKOxiHsN/vSnBvrJ2QyjVCH7PsgBODyW6zirlwnaltvW54T2 F0R3xwwQNbHUKCDOi89lQNjcPMIgZoOM8sQkQedFtWU0lXRG68q+f34EnI4OfLcZnYWr QuQw== X-Received: by 10.28.4.212 with SMTP id 203mr3622463wme.89.1447417154758; Fri, 13 Nov 2015 04:19:14 -0800 (PST) Received: from localhost.localdomain ([84.236.220.225]) by smtp.gmail.com with ESMTPSA id hu2sm19619141wjb.21.2015.11.13.04.19.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Nov 2015 04:19:14 -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] backlight: tps65217_bl: Add MODULE_DEVICE_TABLE. Date: Fri, 13 Nov 2015 13:19:08 +0100 Message-Id: <1447417148-733-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=-7.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 --- drivers/video/backlight/tps65217_bl.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/video/backlight/tps65217_bl.c b/drivers/video/backlight/tps65217_bl.c index 61d72bf..37a9731 100644 --- a/drivers/video/backlight/tps65217_bl.c +++ b/drivers/video/backlight/tps65217_bl.c @@ -320,10 +320,21 @@ 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", +#ifdef CONFIG_OF + .of_match_table = tps65217_bl_of_match, +#endif }, };