From patchwork Tue Oct 20 15:09:53 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: 7448201 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 AAF52BEEA4 for ; Tue, 20 Oct 2015 15:10:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 173E320865 for ; Tue, 20 Oct 2015 15:10:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 67B8520504 for ; Tue, 20 Oct 2015 15:10:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751865AbbJTPJq (ORCPT ); Tue, 20 Oct 2015 11:09:46 -0400 Received: from lists.s-osg.org ([54.187.51.154]:38529 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751621AbbJTPJq (ORCPT ); Tue, 20 Oct 2015 11:09:46 -0400 Received: from localhost.localdomain (unknown [212.250.200.210]) by lists.s-osg.org (Postfix) with ESMTPSA id 6A9F6462EB; Tue, 20 Oct 2015 08:09:44 -0700 (PDT) From: Luis de Bethencourt To: linux-kernel@vger.kernel.org Cc: linux-scsi@vger.kernel.org, JBottomley@odin.com, vinholikatti@gmail.com, Luis de Bethencourt , Luis de Bethencourt Subject: [RESEND PATCH] sci: ufs: Fix module autoload for OF platform driver Date: Tue, 20 Oct 2015 16:09:53 +0100 Message-Id: <1445353793-2508-1-git-send-email-luisbg@osg.samsung.com> X-Mailer: git-send-email 2.5.3 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 From: Luis de Bethencourt 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 --- Hi, This is a resend of a patch sent September 18 [0] 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 [0] https://lkml.org/lkml/2015/9/18/676 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,