clk-qoriq.c (45899dc5f1b5107903b2bc1c78e22d7945a895fd) | clk-qoriq.c (1667393126d7c51fad8b3cb9d3798e8e0367e2ec) |
---|---|
1/* 2 * Copyright 2013 Freescale Semiconductor, Inc. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 * 8 * clock driver for Freescale QorIQ SoCs. --- 1352 unchanged lines hidden (view full) --- 1361 if (of_device_is_compatible(np, chipinfo[i].compat)) 1362 break; 1363 if (is_old_ls1021a && 1364 !strcmp(chipinfo[i].compat, "fsl,ls1021a-clockgen")) 1365 break; 1366 } 1367 1368 if (i == ARRAY_SIZE(chipinfo)) { | 1/* 2 * Copyright 2013 Freescale Semiconductor, Inc. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 * 8 * clock driver for Freescale QorIQ SoCs. --- 1352 unchanged lines hidden (view full) --- 1361 if (of_device_is_compatible(np, chipinfo[i].compat)) 1362 break; 1363 if (is_old_ls1021a && 1364 !strcmp(chipinfo[i].compat, "fsl,ls1021a-clockgen")) 1365 break; 1366 } 1367 1368 if (i == ARRAY_SIZE(chipinfo)) { |
1369 pr_err("%s: unknown clockgen node %s\n", __func__, 1370 np->full_name); | 1369 pr_err("%s: unknown clockgen node %pOF\n", __func__, np); |
1371 goto err; 1372 } 1373 clockgen.info = chipinfo[i]; 1374 1375 if (clockgen.info.guts_compat) { 1376 struct device_node *guts; 1377 1378 guts = of_find_compatible_node(NULL, NULL, 1379 clockgen.info.guts_compat); 1380 if (guts) { 1381 clockgen.guts = of_iomap(guts, 0); 1382 if (!clockgen.guts) { | 1370 goto err; 1371 } 1372 clockgen.info = chipinfo[i]; 1373 1374 if (clockgen.info.guts_compat) { 1375 struct device_node *guts; 1376 1377 guts = of_find_compatible_node(NULL, NULL, 1378 clockgen.info.guts_compat); 1379 if (guts) { 1380 clockgen.guts = of_iomap(guts, 0); 1381 if (!clockgen.guts) { |
1383 pr_err("%s: Couldn't map %s regs\n", __func__, 1384 guts->full_name); | 1382 pr_err("%s: Couldn't map %pOF regs\n", __func__, 1383 guts); |
1385 } 1386 } 1387 1388 } 1389 1390 if (has_erratum_a4510()) 1391 clockgen.info.flags |= CG_CMUX_GE_PLAT; 1392 --- 38 unchanged lines hidden --- | 1384 } 1385 } 1386 1387 } 1388 1389 if (has_erratum_a4510()) 1390 clockgen.info.flags |= CG_CMUX_GE_PLAT; 1391 --- 38 unchanged lines hidden --- |