Bluetooth: Add new PID for Atheros 3011
[pandora-kernel.git] / drivers / bluetooth / ath3k.c
index add9485..949ed09 100644 (file)
 static struct usb_device_id ath3k_table[] = {
        /* Atheros AR3011 */
        { USB_DEVICE(0x0CF3, 0x3000) },
+
+       /* Atheros AR3011 with sflash firmware*/
+       { USB_DEVICE(0x0CF3, 0x3002) },
+
        { }     /* Terminating entry */
 };
 
@@ -143,6 +147,8 @@ static int ath3k_probe(struct usb_interface *intf,
        usb_set_intfdata(intf, data);
        if (ath3k_load_firmware(data, data->fw_data, data->fw_size)) {
                usb_set_intfdata(intf, NULL);
+               kfree(data->fw_data);
+               kfree(data);
                return -EIO;
        }