]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/staging/otus/hal/hpreg.c
Merge branch 'omap-pool'
[linux-2.6-omap-h63xx.git] / drivers / staging / otus / hal / hpreg.c
index 3cfeba8620f6a734c48eb09a251937359e372b7f..d9894fe5f4ec0243b63b4ab2bc44d23f9dce49cc 100644 (file)
@@ -1770,8 +1770,10 @@ void zfHpGetRegulationTable(zdev_t* dev, u16_t regionCode, u16_t c_lo, u16_t c_h
        REG_DOMAIN rd5GHz, rd2GHz;
        const struct cmode *cm;
        s16_t next=0,b;
+       struct zsHpPriv* hpPriv;
+
     zmw_get_wlan_dev(dev);
-    struct zsHpPriv* hpPriv=wd->hpPrivate;
+    hpPriv=wd->hpPrivate;
 
     zmw_declare_for_critical_section();
 
@@ -2473,9 +2475,10 @@ u8_t zfHpGetRegulatoryDomain(zdev_t* dev)
 
 void zfHpDisableDfsChannel(zdev_t* dev, u8_t disableFlag)
 {
-    zmw_get_wlan_dev(dev);
+    struct zsHpPriv* hpPriv;
 
-    struct zsHpPriv* hpPriv=wd->hpPrivate;
+    zmw_get_wlan_dev(dev);
+    hpPriv=wd->hpPrivate;
     hpPriv->disableDfsCh = disableFlag;
     return;
 }