From patchwork Fri Sep 18 17:32:38 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: 7219991 Return-Path: X-Original-To: patchwork-linux-scsi@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 C7A4CBEEC1 for ; Fri, 18 Sep 2015 17:32:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E816D207D8 for ; Fri, 18 Sep 2015 17:32:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0D52B207D1 for ; Fri, 18 Sep 2015 17:32:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753290AbbIRRcm (ORCPT ); Fri, 18 Sep 2015 13:32:42 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:36849 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752770AbbIRRcm (ORCPT ); Fri, 18 Sep 2015 13:32:42 -0400 Received: by wicgb1 with SMTP id gb1so41585524wic.1; Fri, 18 Sep 2015 10:32:40 -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=5pG2ppEi8VY8hHhetDQrUA7ypMe0qSfMcECEAQe+ekI=; b=fb8jYl87fQO+Jy2Q9Fo9Nkb0xVo4vNqi7dwlZfxfAWwjpd+lizJNP6FBfR8e/I8C1Q a12hr2XO/8VtcXt+T8kT1BYI/X2hXAveRb5cApo+Rppb/aPBc42sJ/nwnBy3aSsKgWvv Yf0vJo5tIdE0J9un2RUE2TlIm5SvoZAhGSIWu2zAYjfJnxMtBoi0/5Y/gA7g6Y2Y3xZ5 5FSRqgegknxJdBmor04N7QRSiEYIHQ6cZUNBIffQQeQjZth8zfkPtVhka8mf8ooDuL0h HXFOtVrt/8Y/BWzL1S1Cl2HSQB3ZnwGoVZn1maq/+1mmbZeL+A8L3Dz8VbNw1rQoRYGp U0eg== X-Received: by 10.180.21.137 with SMTP id v9mr38796875wie.8.1442597560885; Fri, 18 Sep 2015 10:32:40 -0700 (PDT) Received: from localhost (goodgumbo.baconseed.org. [94.23.38.65]) by smtp.gmail.com with ESMTPSA id jw9sm9900024wjb.28.2015.09.18.10.32.39 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 18 Sep 2015 10:32:39 -0700 (PDT) From: Luis de Bethencourt X-Google-Original-From: Luis de Bethencourt Date: Fri, 18 Sep 2015 19:32:38 +0200 To: linux-kernel@vger.kernel.org Cc: Vinayak Holikatti , "James E.J. Bottomley" , linux-scsi@vger.kernel.org Subject: [PATCH] sci: ufs: Fix module autoload for OF platform driver Message-ID: <20150918173238.GA29298@goodgumbo.baconseed.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@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/scsi/ufs/ufshcd-pltfrm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c index 7db9564..7f3b0cf 100644 --- a/drivers/scsi/ufs/ufshcd-pltfrm.c +++ b/drivers/scsi/ufs/ufshcd-pltfrm.c @@ -375,6 +375,7 @@ static const struct of_device_id ufs_of_match[] = { { .compatible = "jedec,ufs-1.1"}, {}, }; +MODULE_DEVICE_TABLE(of, ufs_of_match); static const struct dev_pm_ops ufshcd_dev_pm_ops = { .suspend = ufshcd_pltfrm_suspend,