diff options
author | Mirko Vogt <mirko@openwrt.org> | 2008-12-12 11:58:53 +0000 |
---|---|---|
committer | Mirko Vogt <mirko@openwrt.org> | 2008-12-12 11:58:53 +0000 |
commit | fac7f7f84f3771c5247c7fdee825c092077984f5 (patch) | |
tree | 54644c1229434d7ee13c5872bda4129e34337fc0 /target/linux/s3c24xx/patches-2.6.26/0185-Subject-PATCH-a6k-Everyone-calls-SET_NET_DEV-an.patch | |
parent | a34279723a9cf0796f9261f2fb90bea18cd95711 (diff) | |
download | master-187ad058-fac7f7f84f3771c5247c7fdee825c092077984f5.tar.gz master-187ad058-fac7f7f84f3771c5247c7fdee825c092077984f5.tar.bz2 master-187ad058-fac7f7f84f3771c5247c7fdee825c092077984f5.zip |
changed Makefile and profiles, added patches for kernel 2.6.24
(stable-branch of Openmoko)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13613 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.26/0185-Subject-PATCH-a6k-Everyone-calls-SET_NET_DEV-an.patch')
-rwxr-xr-x | target/linux/s3c24xx/patches-2.6.26/0185-Subject-PATCH-a6k-Everyone-calls-SET_NET_DEV-an.patch | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.26/0185-Subject-PATCH-a6k-Everyone-calls-SET_NET_DEV-an.patch b/target/linux/s3c24xx/patches-2.6.26/0185-Subject-PATCH-a6k-Everyone-calls-SET_NET_DEV-an.patch new file mode 100755 index 0000000000..ea5fe5197f --- /dev/null +++ b/target/linux/s3c24xx/patches-2.6.26/0185-Subject-PATCH-a6k-Everyone-calls-SET_NET_DEV-an.patch @@ -0,0 +1,62 @@ +From 30385f05a2e5358e62e3c736bd501c9bbdc1c681 Mon Sep 17 00:00:00 2001 +From: Holger Freyther <zecke@openmoko.org> +Date: Fri, 25 Jul 2008 23:06:16 +0100 +Subject: [PATCH] Subject: [PATCH] [a6k] Everyone calls SET_NET_DEV and hald needs that too, + make it happy + Call SET_NET_DEV to set a parent device. All other net drivers + are doing this and hald needs a parent to add the network device. + +--- + .../sdio/function/wlan/ar6000/ar6000/ar6000_drv.c | 1 + + drivers/sdio/function/wlan/ar6000/hif/hif.c | 6 ++++++ + drivers/sdio/function/wlan/ar6000/include/hif.h | 5 +++++ + 3 files changed, 12 insertions(+), 0 deletions(-) + +diff --git a/drivers/sdio/function/wlan/ar6000/ar6000/ar6000_drv.c b/drivers/sdio/function/wlan/ar6000/ar6000/ar6000_drv.c +index a854c7c..dacc00a 100644 +--- a/drivers/sdio/function/wlan/ar6000/ar6000/ar6000_drv.c ++++ b/drivers/sdio/function/wlan/ar6000/ar6000/ar6000_drv.c +@@ -830,6 +830,7 @@ ar6000_avail_ev(HTC_HANDLE HTCHandle) + sizeof(WMI_DATA_HDR) + HTC_HEADER_LEN; + + /* This runs the init function */ ++ SET_NETDEV_DEV(dev, HIFGetOSDevice(ar->arHifDevice)); + if (register_netdev(dev)) { + AR_DEBUG_PRINTF("ar6000_avail: register_netdev failed\n"); + ar6000_destroy(dev, 0); +diff --git a/drivers/sdio/function/wlan/ar6000/hif/hif.c b/drivers/sdio/function/wlan/ar6000/hif/hif.c +index f5a0986..3d6d792 100644 +--- a/drivers/sdio/function/wlan/ar6000/hif/hif.c ++++ b/drivers/sdio/function/wlan/ar6000/hif/hif.c +@@ -779,6 +779,12 @@ delHifDevice(SDDEVICE *handle) + hifDevice[0].handle = NULL; + } + ++struct device* ++HIFGetOSDevice(HIF_DEVICE *device) ++{ ++ return &device->handle->Device.dev; ++} ++ + static void ResetAllCards(void) + { + UINT8 data; +diff --git a/drivers/sdio/function/wlan/ar6000/include/hif.h b/drivers/sdio/function/wlan/ar6000/include/hif.h +index f32388c..846a69f 100644 +--- a/drivers/sdio/function/wlan/ar6000/include/hif.h ++++ b/drivers/sdio/function/wlan/ar6000/include/hif.h +@@ -284,6 +284,11 @@ HIFConfigureDevice(HIF_DEVICE *device, HIF_DEVICE_CONFIG_OPCODE opcode, + void *config, A_UINT32 configLen); + + ++struct device; ++struct device* ++HIFGetOSDevice(HIF_DEVICE *device); ++ ++ + #ifdef __cplusplus + } + #endif +-- +1.5.6.3 + |