bcmdhd wifi:update driver 1.201.59.5
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rkwifi / bcmdhd / dhd_gpio.c
index 0d1fb307ad10b9b9bf727a67acc2a3de77796355..6ae65426ca6718e6df0249039d8057e77b95b4cf 100755 (executable)
@@ -22,7 +22,7 @@ uint bcm_wlan_get_oob_irq(void)
 
        host_oob_irq = rockchip_wifi_get_oob_irq();
 
-       printk("host_oob_irq: %d \r\n", host_oob_irq);
+       printf("host_oob_irq: %d \r\n", host_oob_irq);
 
        return host_oob_irq;
 }
@@ -32,7 +32,7 @@ uint bcm_wlan_get_oob_irq_flags(void)
        uint host_oob_irq_flags = 0;
 
        host_oob_irq_flags = (IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL | IORESOURCE_IRQ_SHAREABLE) & IRQF_TRIGGER_MASK;
-       printk("host_oob_irq_flags=%d\n", host_oob_irq_flags);
+       printf("host_oob_irq_flags=%d\n", host_oob_irq_flags);
 
        return host_oob_irq_flags;
 }
@@ -43,10 +43,10 @@ int bcm_wlan_set_power(bool on)
        int err = 0;
 
        if (on) {
-               printk("======== PULL WL_REG_ON HIGH! ========\n");
+               printf("======== PULL WL_REG_ON HIGH! ========\n");
                rockchip_wifi_power(1);
        } else {
-               printk("======== PULL WL_REG_ON LOW! ========\n");
+               printf("======== PULL WL_REG_ON LOW! ========\n");
                rockchip_wifi_power(0);
        }
 
@@ -58,10 +58,10 @@ int bcm_wlan_set_carddetect(bool present)
        int err = 0;
 
        if (present) {
-               printk("======== Card detection to detect SDIO card! ========\n");
+               printf("======== Card detection to detect SDIO card! ========\n");
                rockchip_wifi_set_carddetect(1);
        } else {
-               printk("======== Card detection to remove SDIO card! ========\n");
+               printf("======== Card detection to remove SDIO card! ========\n");
                rockchip_wifi_set_carddetect(0);
        }
 
@@ -71,8 +71,8 @@ int bcm_wlan_set_carddetect(bool present)
 int bcm_wlan_get_mac_address(unsigned char *buf)
 {
        int err = 0;
-       
-       printk("======== %s ========\n", __FUNCTION__);
+
+       printf("======== %s ========\n", __FUNCTION__);
 #ifdef EXAMPLE_GET_MAC
        /* EXAMPLE code */
        {
@@ -92,18 +92,18 @@ void* bcm_wlan_prealloc(int section, unsigned long size)
        void *alloc_ptr = NULL;
        alloc_ptr = bcmdhd_mem_prealloc(section, size);
        if (alloc_ptr) {
-               printk("success alloc section %d, size %ld\n", section, size);
+               printf("success alloc section %d, size %ld\n", section, size);
                if (size != 0L)
                        bzero(alloc_ptr, size);
                return alloc_ptr;
        }
-       printk("can't alloc section %d\n", section);
+       printf("can't alloc section %d\n", section);
        return NULL;
 }
 #endif
 
 int bcm_wlan_set_plat_data(void) {
-       printk("======== %s ========\n", __FUNCTION__);
+       printf("======== %s ========\n", __FUNCTION__);
        dhd_wlan_control.set_power = bcm_wlan_set_power;
        dhd_wlan_control.set_carddetect = bcm_wlan_set_carddetect;
        dhd_wlan_control.get_mac_addr = bcm_wlan_get_mac_address;