apple-properties.c (b7f8f259896f669f131713b0c74ba4d008daa71d) | apple-properties.c (55fc610c8cdae353737dbc2d59febd3c1a697095) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * apple-properties.c - EFI device properties on Macs 4 * Copyright (C) 2016 Lukas Wunner <lukas@wunner.de> 5 * 6 * Properties are stored either as: 7 * u8 arrays which can be retrieved with device_property_read_u8_array() or 8 * booleans which can be queried with device_property_present(). --- 143 unchanged lines hidden (view full) --- 152 dev_err(dev, "cannot allocate properties\n"); 153 goto skip_device; 154 } 155 156 unmarshal_key_value_pairs(dev_header, dev, ptr, entry); 157 if (!entry[0].name) 158 goto skip_device; 159 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * apple-properties.c - EFI device properties on Macs 4 * Copyright (C) 2016 Lukas Wunner <lukas@wunner.de> 5 * 6 * Properties are stored either as: 7 * u8 arrays which can be retrieved with device_property_read_u8_array() or 8 * booleans which can be queried with device_property_present(). --- 143 unchanged lines hidden (view full) --- 152 dev_err(dev, "cannot allocate properties\n"); 153 goto skip_device; 154 } 155 156 unmarshal_key_value_pairs(dev_header, dev, ptr, entry); 157 if (!entry[0].name) 158 goto skip_device; 159 |
160 ret = device_add_properties(dev, entry); /* makes deep copy */ | 160 ret = device_create_managed_software_node(dev, entry, NULL); |
161 if (ret) 162 dev_err(dev, "error %d assigning properties\n", ret); 163 164 for (i = 0; entry[i].name; i++) 165 kfree(entry[i].name); 166 167skip_device: 168 kfree(entry); --- 69 unchanged lines hidden --- | 161 if (ret) 162 dev_err(dev, "error %d assigning properties\n", ret); 163 164 for (i = 0; entry[i].name; i++) 165 kfree(entry[i].name); 166 167skip_device: 168 kfree(entry); --- 69 unchanged lines hidden --- |