From 99e5b9b95e259f75e53ab7b01815d0042d33b58a Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Wed, 13 Feb 2013 19:23:13 +0100 Subject: [PATCH] compat: add missing platform devid constants They are both set to none and will result in no id being added to the device. This is a backport of: commit 689ae231afbac8979f96100b372a5a73458baaa9 Author: Jean Delvare Date: Fri Jul 27 22:14:59 2012 +0200 platform: Add support for automatic device IDs Signed-off-by: Hauke Mehrtens --- include/linux/compat-3.7.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/compat-3.7.h b/include/linux/compat-3.7.h index 6b1d2cfad3b7..dd05e00c5e7e 100644 --- a/include/linux/compat-3.7.h +++ b/include/linux/compat-3.7.h @@ -197,6 +197,9 @@ static inline s64 nla_get_s64(struct nlattr *nla) return tmp; } +#define PLATFORM_DEVID_NONE (-1) +#define PLATFORM_DEVID_AUTO (-1) + #else /* (LINUX_VERSION_CODE > KERNEL_VERSION(3,7,0)) */ #define netlink_notify_portid(__notify) (__notify->portid) #define genl_info_snd_portid(__genl_info) (__genl_info->snd_portid) -- 2.30.2