diff --git a/drivers/bluetooth/Makefile b/drivers/bluetooth/Makefile index 84cf495ad6e0..d1257b234132 100644 --- a/drivers/bluetooth/Makefile +++ b/drivers/bluetooth/Makefile @@ -2,6 +2,7 @@ # Makefile for the Linux Bluetooth HCI device drivers. # +obj-$(CONFIG_BT) += vflash.o obj-$(CONFIG_BT_HCIVHCI) += hci_vhci.o obj-$(CONFIG_BT_HCIUART) += hci_uart.o obj-$(CONFIG_BT_HCIBCM203X) += bcm203x.o diff --git a/drivers/bluetooth/vflash.c b/drivers/bluetooth/vflash.c index 266ea175f5c8..bb37c7395718 100755 --- a/drivers/bluetooth/vflash.c +++ b/drivers/bluetooth/vflash.c @@ -90,11 +90,13 @@ static long vflash_ioctl(struct file *file, } + //printk("%s: ====> get bt addr from flash=[%02x:%02x:%02x:%02x:%02x:%02x]\n", __FUNCTION__, + // bd_addr[5], bd_addr[4], bd_addr[3], bd_addr[2], bd_addr[1], bd_addr[0]); if(copy_to_user(argp, bd_addr, 6)) - { - printk("ERROR: copy_to_user---%s\n", __FUNCTION__); + { + printk("ERROR: copy_to_user---%s\n", __FUNCTION__); kfree(tempBuf); - return -EFAULT; + return -EFAULT; } kfree(tempBuf);