treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / sh / kernel / cpu / sh4a / pinmux-sh7785.c
blobf329de6e758a4fb9c053b6245d3712022d9ef53f
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * SH7785 Pinmux
5 * Copyright (C) 2008 Magnus Damm
6 */
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 sh7785_pfc_resources[] = {
15 [0] = {
16 .start = 0xffe70000,
17 .end = 0xffe7008f,
18 .flags = IORESOURCE_MEM,
22 static int __init plat_pinmux_setup(void)
24 return sh_pfc_register("pfc-sh7785", sh7785_pfc_resources,
25 ARRAY_SIZE(sh7785_pfc_resources));
27 arch_initcall(plat_pinmux_setup);