From: Luis R. Rodriguez Date: Thu, 10 Dec 2009 23:55:51 +0000 (-0800) Subject: Move bluetooth device_type changes to 14-device-type.patch X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e55581b02ddc068df474a6eb6cd64d70cd8a5b9a;p=openwrt%2Fstaging%2Fblogic.git Move bluetooth device_type changes to 14-device-type.patch This belongs here. Signed-off-by: Luis R. Rodriguez --- diff --git a/compat/patches/14-device-type.patch b/compat/patches/14-device-type.patch index 676d7a46e9d0..9f2f433b59f2 100644 --- a/compat/patches/14-device-type.patch +++ b/compat/patches/14-device-type.patch @@ -20,3 +20,17 @@ compile warning. static int cfg80211_netdev_notifier_call(struct notifier_block * nb, unsigned long state, +--- a/net/bluetooth/bnep/core.c 2009-12-10 09:22:58.000000000 -0800 ++++ b/net/bluetooth/bnep/core.c 2009-12-10 09:22:59.000000000 -0800 +@@ -536,9 +536,11 @@ static struct device *bnep_get_device(st + return conn ? &conn->dev : NULL; + } + ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)) + static struct device_type bnep_type = { + .name = "bluetooth", + }; ++#endif + + int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock) + { diff --git a/compat/patches/16-bluetooth.patch b/compat/patches/16-bluetooth.patch index 8a739ab7ecf4..93f9ab389d18 100644 --- a/compat/patches/16-bluetooth.patch +++ b/compat/patches/16-bluetooth.patch @@ -41,20 +41,6 @@ diff -Nur a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c if (amount < 0) amount = 0; err = put_user(amount, (int __user *) arg); ---- a/net/bluetooth/bnep/core.c 2009-12-10 09:22:58.000000000 -0800 -+++ b/net/bluetooth/bnep/core.c 2009-12-10 09:22:59.000000000 -0800 -@@ -536,9 +536,11 @@ static struct device *bnep_get_device(st - return conn ? &conn->dev : NULL; - } - -+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)) - static struct device_type bnep_type = { - .name = "bluetooth", - }; -+#endif - - int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock) - { diff -Nur a/net/bluetooth/cmtp/capi.c b/net/bluetooth/cmtp/capi.c --- a/net/bluetooth/cmtp/capi.c 2009-11-25 11:24:43.000000000 +0530 +++ b/net/bluetooth/cmtp/capi.c 2009-11-26 16:43:42.000000000 +0530