| .. | .. | 
|---|
|  | 1 | +// SPDX-License-Identifier: GPL-2.0-only | 
|---|
| 1 | 2 | /* | 
|---|
| 2 | 3 | * PIC32 RNG driver | 
|---|
| 3 | 4 | * | 
|---|
| 4 | 5 | * Joshua Henderson <joshua.henderson@microchip.com> | 
|---|
| 5 | 6 | * Copyright (C) 2016 Microchip Technology Inc.  All rights reserved. | 
|---|
| 6 |  | - * | 
|---|
| 7 |  | - * This program is free software; you can distribute it and/or modify it | 
|---|
| 8 |  | - * under the terms of the GNU General Public License (Version 2) as | 
|---|
| 9 |  | - * published by the Free Software Foundation. | 
|---|
| 10 |  | - * | 
|---|
| 11 |  | - * This program is distributed in the hope it will be useful, but WITHOUT | 
|---|
| 12 |  | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | 
|---|
| 13 |  | - * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License | 
|---|
| 14 |  | - * for more details. | 
|---|
| 15 | 7 | */ | 
|---|
| 16 | 8 |  | 
|---|
| 17 | 9 | #include <linux/clk.h> | 
|---|
| .. | .. | 
|---|
| 78 | 70 | static int pic32_rng_probe(struct platform_device *pdev) | 
|---|
| 79 | 71 | { | 
|---|
| 80 | 72 | struct pic32_rng *priv; | 
|---|
| 81 |  | -	struct resource *res; | 
|---|
| 82 | 73 | u32 v; | 
|---|
| 83 | 74 | int ret; | 
|---|
| 84 | 75 |  | 
|---|
| .. | .. | 
|---|
| 86 | 77 | if (!priv) | 
|---|
| 87 | 78 | return -ENOMEM; | 
|---|
| 88 | 79 |  | 
|---|
| 89 |  | -	res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 
|---|
| 90 |  | -	priv->base = devm_ioremap_resource(&pdev->dev, res); | 
|---|
|  | 80 | +	priv->base = devm_platform_ioremap_resource(pdev, 0); | 
|---|
| 91 | 81 | if (IS_ERR(priv->base)) | 
|---|
| 92 | 82 | return PTR_ERR(priv->base); | 
|---|
| 93 | 83 |  | 
|---|
| .. | .. | 
|---|
| 129 | 119 | return 0; | 
|---|
| 130 | 120 | } | 
|---|
| 131 | 121 |  | 
|---|
| 132 |  | -static const struct of_device_id pic32_rng_of_match[] = { | 
|---|
|  | 122 | +static const struct of_device_id pic32_rng_of_match[] __maybe_unused = { | 
|---|
| 133 | 123 | { .compatible	= "microchip,pic32mzda-rng", }, | 
|---|
| 134 | 124 | { /* sentinel */ } | 
|---|
| 135 | 125 | }; | 
|---|