diff options
Diffstat (limited to 'drivers/hw_random/mxc-rngc.c')
-rw-r--r-- | drivers/hw_random/mxc-rngc.c | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/drivers/hw_random/mxc-rngc.c b/drivers/hw_random/mxc-rngc.c index 075c20e437..39608b97af 100644 --- a/drivers/hw_random/mxc-rngc.c +++ b/drivers/hw_random/mxc-rngc.c @@ -1,19 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * RNG driver for Freescale RNGC * * Copyright (C) 2008-2012 Freescale Semiconductor, Inc. - */ - -/* - * The code contained herein is licensed under the GNU General Public - * License. You may obtain a copy of the GNU General Public License - * Version 2 or later at the following locations: * - * http://www.opensource.org/licenses/gpl-license.html - * http://www.gnu.org/copyleft/gpl.html - */ - -/* * Hardware driver for the Intel/AMD/VIA Random Number Generators (RNG) * (c) Copyright 2003 Red Hat Inc <jgarzik@redhat.com> * @@ -27,10 +17,6 @@ * Hardware driver for Intel i810 Random Number Generator (RNG) * Copyright 2000,2001 Jeff Garzik <jgarzik@pobox.com> * Copyright 2000,2001 Philipp Rumpf <prumpf@mandrakesoft.com> - * - * This file is licensed under the terms of the GNU General Public - * License version 2. This program is licensed "as is" without any - * warranty of any kind, whether express or implied. */ #include <common.h> @@ -115,7 +101,7 @@ #define RNG_ADDR_RANGE 0x34 struct mxc_rngc { - struct device_d *dev; + struct device *dev; struct clk *clk; void __iomem *base; struct hwrng rng; @@ -254,7 +240,7 @@ static int mxc_rngc_init(struct hwrng *rng) return 0; } -static int mxc_rngc_probe(struct device_d *dev) +static int mxc_rngc_probe(struct device *dev) { struct mxc_rngc *rngc; int ret; @@ -296,8 +282,9 @@ static const struct of_device_id mxc_rngc_dt_ids[] = { { .compatible = "fsl,imx25-rngb" }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, mxc_rngc_dt_ids); -static struct driver_d mxc_rngc_driver = { +static struct driver mxc_rngc_driver = { .name = "mxc_rngc", .probe = mxc_rngc_probe, .of_compatible = mxc_rngc_dt_ids, |