From patchwork Tue Sep 15 16:41:33 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: 7188011 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@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 11DD09F336 for ; Tue, 15 Sep 2015 16:41:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 309932071B for ; Tue, 15 Sep 2015 16:41:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EF1252070F for ; Tue, 15 Sep 2015 16:41:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752114AbbIOQlg (ORCPT ); Tue, 15 Sep 2015 12:41:36 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:36973 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752089AbbIOQlg (ORCPT ); Tue, 15 Sep 2015 12:41:36 -0400 Received: by wicfx3 with SMTP id fx3so35535905wic.0; Tue, 15 Sep 2015 09:41:34 -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=r8nsGvksOemPR90yzuVl9+oXuWmghfmbTEZ73nF5uHQ=; b=r+abpFNtcLE0RgWjUFyBjoV/U6zasQDpY0bPX+HOxiv2nDTOkHjldu2xM9z9US2t3H OdZedbslh0ZbSKEKb8vkR685WasHkKyfXG+nHUuAyhvE/Yz4ont7r9BOK96QDhrUXaz2 yKar3jT4bvKFd33R0U6+1EyseEa8v2F8UgTdKeajVCIw7kKMuKwlCzFLpXMNiE7QyO9e deVgfJVrK69PaspzOhvz1xKg9jHbiHPTZZPQGp9RuCmTFx2s6FxlB8+ImqtImnmuVRWY v7iztqhb1WBFkW3CJ8/LjBiwUfJd2o9H4naS2iQaWVzlpA4puXkrbsV9DcT6FCsPsxhj i9ag== X-Received: by 10.180.12.241 with SMTP id b17mr9406799wic.55.1442335294713; Tue, 15 Sep 2015 09:41:34 -0700 (PDT) Received: from localhost (goodgumbo.baconseed.org. [94.23.38.65]) by smtp.gmail.com with ESMTPSA id r19sm20797436wib.7.2015.09.15.09.41.33 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 15 Sep 2015 09:41:34 -0700 (PDT) From: Luis de Bethencourt X-Google-Original-From: Luis de Bethencourt Date: Tue, 15 Sep 2015 18:41:33 +0200 To: linux-kernel@vger.kernel.org Cc: Olof Johansson , Matt Mackall , Herbert Xu , Wolfram Sang , linuxppc-dev@lists.ozlabs.org, linux-crypto@vger.kernel.org Subject: [PATCH 1/2] char: hw_random: Fix module autoload for OF platform drivers Message-ID: <20150915164133.GA5642@goodgumbo.baconseed.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@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 drivers have 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 --- drivers/char/hw_random/pasemi-rng.c | 1 + drivers/char/hw_random/ppc4xx-rng.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/char/hw_random/pasemi-rng.c b/drivers/char/hw_random/pasemi-rng.c index 3eb7bdd..20d6564 100644 --- a/drivers/char/hw_random/pasemi-rng.c +++ b/drivers/char/hw_random/pasemi-rng.c @@ -138,6 +138,7 @@ static struct of_device_id rng_match[] = { { .compatible = "pasemi,pwrficient-rng", }, { }, }; +MODULE_DEVICE_TABLE(of, rng_match); static struct platform_driver rng_driver = { .driver = { diff --git a/drivers/char/hw_random/ppc4xx-rng.c b/drivers/char/hw_random/ppc4xx-rng.c index c85d31a..145e273 100644 --- a/drivers/char/hw_random/ppc4xx-rng.c +++ b/drivers/char/hw_random/ppc4xx-rng.c @@ -129,6 +129,7 @@ static struct of_device_id ppc4xx_rng_match[] = { { .compatible = "amcc,ppc440epx-rng", }, {}, }; +MODULE_DEVICE_TABLE(of, ppc4xx_rng_match); static struct platform_driver ppc4xx_rng_driver = { .driver = {