From patchwork Fri Sep 18 16:54:07 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: 7219411 Return-Path: X-Original-To: patchwork-linux-pm@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 A4680BEEC1 for ; Fri, 18 Sep 2015 16:54:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C68C120903 for ; Fri, 18 Sep 2015 16:54:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DC06E20671 for ; Fri, 18 Sep 2015 16:54:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754522AbbIRQyK (ORCPT ); Fri, 18 Sep 2015 12:54:10 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:36692 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752754AbbIRQyJ (ORCPT ); Fri, 18 Sep 2015 12:54:09 -0400 Received: by wicgb1 with SMTP id gb1so40340413wic.1; Fri, 18 Sep 2015 09:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:date:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=6hZXp83fGsuMp9PzfT2YP7kZ0fLL21U5ivkL/DAy4yY=; b=HMozCs51OzARhTGllnMYzSfEBE8sgCYuhfLQ1i+cOkRo8cNhW1t5ppKsq7LbGQwbGQ 6ZaXIuXyGeNwFSsZmkqRVRaZeIpcJbbKPBYOn0ZLWBO/bWKcPGU5ir4QCn7uloI1NCQD kcnCbGZgTWOeIrQViZudbhgtH3XX54fb/IakwOsOQxyY4+GPw+5AAS4umtQ19LJDdkVH yXMCyv7Rul9frhXMGzS4r7Xlxd4Q/Xj6yM2W2FxrfeQ6i2Ft9HmIqS2W8jxd+V1pveFO pkJXVHuw2TMcppETYNvYq+zv7zR8HnhQJOmkBjblFzyBdeL0V8TSzxkx8LgLdBLk1kLQ z+8g== X-Received: by 10.194.172.33 with SMTP id az1mr8324297wjc.57.1442595248467; Fri, 18 Sep 2015 09:54:08 -0700 (PDT) Received: from localhost (goodgumbo.baconseed.org. [94.23.38.65]) by smtp.gmail.com with ESMTPSA id qc4sm9733770wjc.33.2015.09.18.09.54.07 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 18 Sep 2015 09:54:07 -0700 (PDT) From: Luis de Bethencourt X-Google-Original-From: Luis de Bethencourt Date: Fri, 18 Sep 2015 18:54:07 +0200 To: linux-kernel@vger.kernel.org Cc: Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , linux-pm@vger.kernel.org Subject: [PATCH] tps65090-charger: Fix module autoload for OF platform driver Message-ID: <20150918165407.GA27491@goodgumbo.baconseed.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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=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 --- Hello, This patch adds the missing MODULE_DEVICE_TABLE() for OF to export that information so modules have the correct aliases built-in and autoloading works correctly. A longer explanation by Javier Canillas can be found here: https://lkml.org/lkml/2015/7/30/519 Thanks, Luis drivers/power/tps65090-charger.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/tps65090-charger.c b/drivers/power/tps65090-charger.c index 7e8fbd2..1b4b5e0 100644 --- a/drivers/power/tps65090-charger.c +++ b/drivers/power/tps65090-charger.c @@ -353,6 +353,7 @@ static const struct of_device_id of_tps65090_charger_match[] = { { .compatible = "ti,tps65090-charger", }, { /* end */ } }; +MODULE_DEVICE_TABLE(of, of_tps65090_charger_match); static struct platform_driver tps65090_charger_driver = { .driver = {