Skip to content

Commit 32d05dc

Browse files
ckoehnepbruenn
authored andcommitted
linuxkpi: include missing linux/device.h
At the moment, struct device is accidentally defined by FreeBSD. This was noticed when upgrading TC/BSD from 13.0 to 13.1 because FreeBSD changed the name of it's struct device to struct _device. Add the linux device header to include the Linux definition of struct device. Signed-off-by: Corvin Köhne <[email protected]> Reviewed-by: Patrick Brünn <[email protected]>
1 parent adbcc93 commit 32d05dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

linuxkpi/linux/platform_device.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
Author: Patrick Bruenn <[email protected]>
66
*/
77

8+
#include <linux/device.h>
9+
810
#define platform_device_register(x) 0
911
#define platform_device_unregister(x) 0
1012
struct platform_device {

0 commit comments

Comments
 (0)