| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 3 | | - * under the terms of the GNU General Public License version 2 as published |
|---|
| 4 | | - * by the Free Software Foundation. |
|---|
| 5 | 3 | * |
|---|
| 6 | 4 | * Copyright (C) 2011 Thomas Langer <thomas.langer@lantiq.com> |
|---|
| 7 | 5 | * Copyright (C) 2011 John Crispin <john@phrozen.org> |
|---|
| .. | .. |
|---|
| 169 | 167 | { |
|---|
| 170 | 168 | struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); |
|---|
| 171 | 169 | |
|---|
| 170 | + if (!clk) |
|---|
| 171 | + return; |
|---|
| 172 | 172 | clk->cl.dev_id = dev; |
|---|
| 173 | 173 | clk->cl.con_id = NULL; |
|---|
| 174 | 174 | clk->cl.clk = clk; |
|---|
| .. | .. |
|---|
| 223 | 223 | res_sys[2].name) < 0)) |
|---|
| 224 | 224 | pr_err("Failed to request core resources"); |
|---|
| 225 | 225 | |
|---|
| 226 | | - status_membase = ioremap_nocache(res_status.start, |
|---|
| 226 | + status_membase = ioremap(res_status.start, |
|---|
| 227 | 227 | resource_size(&res_status)); |
|---|
| 228 | | - ltq_ebu_membase = ioremap_nocache(res_ebu.start, |
|---|
| 228 | + ltq_ebu_membase = ioremap(res_ebu.start, |
|---|
| 229 | 229 | resource_size(&res_ebu)); |
|---|
| 230 | 230 | |
|---|
| 231 | 231 | if (!status_membase || !ltq_ebu_membase) |
|---|
| 232 | 232 | panic("Failed to remap core resources"); |
|---|
| 233 | 233 | |
|---|
| 234 | 234 | for (i = 0; i < 3; i++) { |
|---|
| 235 | | - sysctl_membase[i] = ioremap_nocache(res_sys[i].start, |
|---|
| 235 | + sysctl_membase[i] = ioremap(res_sys[i].start, |
|---|
| 236 | 236 | resource_size(&res_sys[i])); |
|---|
| 237 | 237 | if (!sysctl_membase[i]) |
|---|
| 238 | 238 | panic("Failed to remap sysctrl resources"); |
|---|