platform.c (3eb66e91a25497065c5322b1268cbc3953642227) platform.c (418e3ea157efb0eb2c6dd412a8d5f052477c7f5a)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2006 Benjamin Herrenschmidt, IBM Corp.
4 * <benh@kernel.crashing.org>
5 * and Arnd Bergmann, IBM Corp.
6 * Merged from powerpc/kernel/of_platform.c and
7 * sparc{,64}/kernel/of_device.c by Stephen Rothwell
8 */

--- 23 unchanged lines hidden (view full) ---

32 {} /* Empty terminated list */
33};
34
35static const struct of_device_id of_skipped_node_table[] = {
36 { .compatible = "operating-points-v2", },
37 {} /* Empty terminated list */
38};
39
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2006 Benjamin Herrenschmidt, IBM Corp.
4 * <benh@kernel.crashing.org>
5 * and Arnd Bergmann, IBM Corp.
6 * Merged from powerpc/kernel/of_platform.c and
7 * sparc{,64}/kernel/of_device.c by Stephen Rothwell
8 */

--- 23 unchanged lines hidden (view full) ---

32 {} /* Empty terminated list */
33};
34
35static const struct of_device_id of_skipped_node_table[] = {
36 { .compatible = "operating-points-v2", },
37 {} /* Empty terminated list */
38};
39
40static int of_dev_node_match(struct device *dev, void *data)
40static int of_dev_node_match(struct device *dev, const void *data)
41{
42 return dev->of_node == data;
43}
44
45/**
46 * of_find_device_by_node - Find the platform_device associated with a node
47 * @np: Pointer to device tree node
48 *

--- 678 unchanged lines hidden ---
41{
42 return dev->of_node == data;
43}
44
45/**
46 * of_find_device_by_node - Find the platform_device associated with a node
47 * @np: Pointer to device tree node
48 *

--- 678 unchanged lines hidden ---