btt_devs.c (e82a82c19f4272ea5437cc76e5711b98e2ee6223) | btt_devs.c (f0c98ebc57c2d5e535bc4f9167f35650d2ba3c90) |
---|---|
1/* 2 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of version 2 of the GNU General Public License as 6 * published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, but --- 184 unchanged lines hidden (view full) --- 193 } 194 return dev; 195} 196 197struct device *nd_btt_create(struct nd_region *nd_region) 198{ 199 struct device *dev = __nd_btt_create(nd_region, 0, NULL, NULL); 200 | 1/* 2 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of version 2 of the GNU General Public License as 6 * published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, but --- 184 unchanged lines hidden (view full) --- 193 } 194 return dev; 195} 196 197struct device *nd_btt_create(struct nd_region *nd_region) 198{ 199 struct device *dev = __nd_btt_create(nd_region, 0, NULL, NULL); 200 |
201 if (dev) 202 __nd_device_register(dev); | 201 __nd_device_register(dev); |
203 return dev; 204} 205 206static bool uuid_is_null(u8 *uuid) 207{ 208 static const u8 null_uuid[16]; 209 210 return (memcmp(uuid, null_uuid, 16) == 0); --- 94 unchanged lines hidden --- | 202 return dev; 203} 204 205static bool uuid_is_null(u8 *uuid) 206{ 207 static const u8 null_uuid[16]; 208 209 return (memcmp(uuid, null_uuid, 16) == 0); --- 94 unchanged lines hidden --- |