From patchwork Sat Aug 29 10:47:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis de Bethencourt X-Patchwork-Id: 7095021 Return-Path: X-Original-To: patchwork-linux-input@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 539189F358 for ; Sat, 29 Aug 2015 10:47:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 730AD208ED for ; Sat, 29 Aug 2015 10:47:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8CEF4208D6 for ; Sat, 29 Aug 2015 10:47:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752814AbbH2Kra (ORCPT ); Sat, 29 Aug 2015 06:47:30 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:38547 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751963AbbH2Kr2 (ORCPT ); Sat, 29 Aug 2015 06:47:28 -0400 Received: by wifs6 with SMTP id s6so4947355wif.1; Sat, 29 Aug 2015 03:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=PQQ8peyYcD/n9dR6tRsc39txk9jLoGg1TUS6N01ufrA=; b=s00WUH1VLoeTonFLxQh50XLGoLMRhNW89umwJsnIU9CC9Dh02cRcLL1B7P5yNoZC1X o28eM5heBRr4PtBOlJ4AZyDiU7NWdPhZcnXTq0GpB/SfFOTJ3dOIe5FFXHkAkzi8Qb4b uIlPSDrFBBBJZ4l9sb2LKicYb1/d5wKbsvpcxyyJfBAMG/QFIEAzbBWhJwxmv9gOYAhw 5eI3Rx4j3NgCIe+rk3kOv9+0FLZaN5aCTu5b+x5ReeBNPoKlQcmE7lPgG8VjUQ0oVs6p WngRxD41Ut0hotcJTN+icZS5V8+as0wDbwjYL59NCbjiLkAI8DMtW4tsHCYvq2KBwjAA v7kQ== X-Received: by 10.194.108.232 with SMTP id hn8mr15913732wjb.154.1440845247743; Sat, 29 Aug 2015 03:47:27 -0700 (PDT) Received: from localhost (goodgumbo.baconseed.org. [94.23.38.65]) by smtp.gmail.com with ESMTPSA id gm20sm12276171wjc.17.2015.08.29.03.47.26 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 29 Aug 2015 03:47:27 -0700 (PDT) Date: Sat, 29 Aug 2015 12:47:26 +0200 From: Luis de Bethencourt To: linux-kernel@vger.kernel.org Cc: Dmitry Torokhov , Jaewon Kim , Chanwoo Choi , Kyungmin Park , Fabian Frederick , Axel Lin , linux-input@vger.kernel.org, Javier Martinez Canillas Subject: [PATCH v2 3/6] input: regulator-haptic: Fix module autoload for OF platform driver Message-ID: <20150829104726.GA20770@goodgumbo.baconseed.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, 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 This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: Luis de Bethencourt --- Better without an empty line between of_device_id and MODULE_DEVICE_TABLE. Thanks, Luis drivers/input/misc/regulator-haptic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/misc/regulator-haptic.c b/drivers/input/misc/regulator-haptic.c index 6bf3f10..a804705 100644 --- a/drivers/input/misc/regulator-haptic.c +++ b/drivers/input/misc/regulator-haptic.c @@ -249,6 +249,7 @@ static const struct of_device_id regulator_haptic_dt_match[] = { { .compatible = "regulator-haptic" }, { /* sentinel */ }, }; +MODULE_DEVICE_TABLE(of, regulator_haptic_dt_match); static struct platform_driver regulator_haptic_driver = { .probe = regulator_haptic_probe,