hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/char/hw_random/pasemi-rng.c
....@@ -1,22 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2006-2007 PA Semi, Inc
34 *
45 * Maintained by: Olof Johansson <olof@lixom.net>
56 *
67 * Driver for the PWRficient onchip rng
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, write to the Free Software
19
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
208 */
219
2210 #include <linux/module.h>
....@@ -98,10 +86,8 @@
9886 static int rng_probe(struct platform_device *pdev)
9987 {
10088 void __iomem *rng_regs;
101
- struct resource *res;
10289
103
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
104
- rng_regs = devm_ioremap_resource(&pdev->dev, res);
90
+ rng_regs = devm_platform_ioremap_resource(pdev, 0);
10591 if (IS_ERR(rng_regs))
10692 return PTR_ERR(rng_regs);
10793