treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / sh / kernel / cpu / sh4a / pinmux-sh7734.c
blob46256b19619a79ab66d1590ecdc1b681596e07d1
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * SH7734 processor support - PFC hardware block
5 * Copyright (C) 2012 Renesas Solutions Corp.
6 * Copyright (C) 2012 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
7 */
8 #include <linux/bug.h>
9 #include <linux/init.h>
10 #include <linux/kernel.h>
11 #include <linux/ioport.h>
12 #include <cpu/pfc.h>
14 static struct resource sh7734_pfc_resources[] = {
15 [0] = { /* PFC */
16 .start = 0xFFFC0000,
17 .end = 0xFFFC011C,
18 .flags = IORESOURCE_MEM,
20 [1] = { /* GPIO */
21 .start = 0xFFC40000,
22 .end = 0xFFC4502B,
23 .flags = IORESOURCE_MEM,
27 static int __init plat_pinmux_setup(void)
29 return sh_pfc_register("pfc-sh7734", sh7734_pfc_resources,
30 ARRAY_SIZE(sh7734_pfc_resources));
32 arch_initcall(plat_pinmux_setup);