core.c (e0772de8a48b69d39624cdf99fac8f4a3fcc387b) | core.c (abb9c9b8b51ba53b47ad7685ad2a0a64dbbf7bf5) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2011-2017, The Linux Foundation 4 */ 5 6#include <linux/kernel.h> 7#include <linux/errno.h> 8#include <linux/slab.h> --- 100 unchanged lines hidden (view full) --- 109 struct slim_device *sbdev, 110 struct device_node *node) 111{ 112 sbdev->dev.bus = &slimbus_bus; 113 sbdev->dev.parent = ctrl->dev; 114 sbdev->dev.release = slim_dev_release; 115 sbdev->dev.driver = NULL; 116 sbdev->ctrl = ctrl; | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2011-2017, The Linux Foundation 4 */ 5 6#include <linux/kernel.h> 7#include <linux/errno.h> 8#include <linux/slab.h> --- 100 unchanged lines hidden (view full) --- 109 struct slim_device *sbdev, 110 struct device_node *node) 111{ 112 sbdev->dev.bus = &slimbus_bus; 113 sbdev->dev.parent = ctrl->dev; 114 sbdev->dev.release = slim_dev_release; 115 sbdev->dev.driver = NULL; 116 sbdev->ctrl = ctrl; |
117 INIT_LIST_HEAD(&sbdev->stream_list); 118 spin_lock_init(&sbdev->stream_list_lock); |
|
117 118 if (node) 119 sbdev->dev.of_node = of_node_get(node); 120 121 dev_set_name(&sbdev->dev, "%x:%x:%x:%x", 122 sbdev->e_addr.manf_id, 123 sbdev->e_addr.prod_code, 124 sbdev->e_addr.dev_index, --- 395 unchanged lines hidden --- | 119 120 if (node) 121 sbdev->dev.of_node = of_node_get(node); 122 123 dev_set_name(&sbdev->dev, "%x:%x:%x:%x", 124 sbdev->e_addr.manf_id, 125 sbdev->e_addr.prod_code, 126 sbdev->e_addr.dev_index, --- 395 unchanged lines hidden --- |