From patchwork Wed Oct 11 13:16:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris BREZILLON X-Patchwork-Id: 9999611 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 880BF6037F for ; Wed, 11 Oct 2017 13:16:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A11728965 for ; Wed, 11 Oct 2017 13:16:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E87428A16; Wed, 11 Oct 2017 13:16:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2619628965 for ; Wed, 11 Oct 2017 13:16:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752029AbdJKNQY (ORCPT ); Wed, 11 Oct 2017 09:16:24 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:60306 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757485AbdJKNQX (ORCPT ); Wed, 11 Oct 2017 09:16:23 -0400 Received: by mail.free-electrons.com (Postfix, from userid 110) id EF33B207CF; Wed, 11 Oct 2017 15:16:21 +0200 (CEST) Received: from localhost.localdomain (AAubervilliers-681-1-112-204.w90-88.abo.wanadoo.fr [90.88.51.204]) by mail.free-electrons.com (Postfix) with ESMTPSA id 9891620791; Wed, 11 Oct 2017 15:16:21 +0200 (CEST) From: Boris Brezillon To: Arnd Bergmann , Olof Johansson , Kevin Hilman , linux-arm-kernel@lists.infradead.org, Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org Cc: Russell King , Arnaud Ebalard , Thomas Petazzoni , Gregory CLEMENT , Jason Cooper , Sebastian Hesselbarth , Andrew Lunn , Boris Brezillon Subject: [PATCH 1/3] crypto: marvell - Add a platform_device_id table Date: Wed, 11 Oct 2017 15:16:17 +0200 Message-Id: <20171011131619.30196-2-boris.brezillon@free-electrons.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171011131619.30196-1-boris.brezillon@free-electrons.com> References: <20171011131619.30196-1-boris.brezillon@free-electrons.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add a platform_device_id table to allow using this driver on orion platforms that have not been converted to DT. Signed-off-by: Boris Brezillon --- drivers/crypto/marvell/cesa.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c index 6e7a5c77a00a..c14674c6c11d 100644 --- a/drivers/crypto/marvell/cesa.c +++ b/drivers/crypto/marvell/cesa.c @@ -599,9 +599,15 @@ static int mv_cesa_remove(struct platform_device *pdev) return 0; } +static const struct platform_device_id mv_cesa_plat_id_table[] = { + { .name = "mv_crypto" }, +}; +MODULE_DEVICE_TABLE(platform, mv_cesa_plat_id_table); + static struct platform_driver marvell_cesa = { .probe = mv_cesa_probe, .remove = mv_cesa_remove, + .id_table = mv_cesa_plat_id_table, .driver = { .name = "marvell-cesa", .of_match_table = mv_cesa_of_match_table,