Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(632)

Side by Side Diff: drivers/bluetooth/hci_ldisc.c

Issue 2649001: Atheros patch to support ath3k BT device. (Closed) Base URL: ssh://git@chromiumos-git/kernel.git
Patch Set: Modified to address review comments. Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « drivers/bluetooth/hci_ath.c ('k') | drivers/bluetooth/hci_uart.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * 2 *
3 * Bluetooth HCI UART driver 3 * Bluetooth HCI UART driver
4 * 4 *
5 * Copyright (C) 2000-2001 Qualcomm Incorporated 5 * Copyright (C) 2000-2001 Qualcomm Incorporated
6 * Copyright (C) 2002-2003 Maxim Krasnyansky <maxk@qualcomm.com> 6 * Copyright (C) 2002-2003 Maxim Krasnyansky <maxk@qualcomm.com>
7 * Copyright (C) 2004-2005 Marcel Holtmann <marcel@holtmann.org> 7 * Copyright (C) 2004-2005 Marcel Holtmann <marcel@holtmann.org>
8 * 8 *
9 * 9 *
10 * This program is free software; you can redistribute it and/or modify 10 * This program is free software; you can redistribute it and/or modify
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 535
536 #ifdef CONFIG_BT_HCIUART_H4 536 #ifdef CONFIG_BT_HCIUART_H4
537 h4_init(); 537 h4_init();
538 #endif 538 #endif
539 #ifdef CONFIG_BT_HCIUART_BCSP 539 #ifdef CONFIG_BT_HCIUART_BCSP
540 bcsp_init(); 540 bcsp_init();
541 #endif 541 #endif
542 #ifdef CONFIG_BT_HCIUART_LL 542 #ifdef CONFIG_BT_HCIUART_LL
543 ll_init(); 543 ll_init();
544 #endif 544 #endif
545 #ifdef CONFIG_BT_HCIUART_ATH
546 ath_init();
547 #endif
545 548
546 return 0; 549 return 0;
547 } 550 }
548 551
549 static void __exit hci_uart_exit(void) 552 static void __exit hci_uart_exit(void)
550 { 553 {
551 int err; 554 int err;
552 555
553 #ifdef CONFIG_BT_HCIUART_H4 556 #ifdef CONFIG_BT_HCIUART_H4
554 h4_deinit(); 557 h4_deinit();
555 #endif 558 #endif
556 #ifdef CONFIG_BT_HCIUART_BCSP 559 #ifdef CONFIG_BT_HCIUART_BCSP
557 bcsp_deinit(); 560 bcsp_deinit();
558 #endif 561 #endif
559 #ifdef CONFIG_BT_HCIUART_LL 562 #ifdef CONFIG_BT_HCIUART_LL
560 ll_deinit(); 563 ll_deinit();
561 #endif 564 #endif
565 #ifdef CONFIG_BT_HCIUART_ATH
566 ath_deinit();
567 #endif
562 568
563 /* Release tty registration of line discipline */ 569 /* Release tty registration of line discipline */
564 if ((err = tty_unregister_ldisc(N_HCI))) 570 if ((err = tty_unregister_ldisc(N_HCI)))
565 BT_ERR("Can't unregister HCI line discipline (%d)", err); 571 BT_ERR("Can't unregister HCI line discipline (%d)", err);
566 } 572 }
567 573
568 module_init(hci_uart_init); 574 module_init(hci_uart_init);
569 module_exit(hci_uart_exit); 575 module_exit(hci_uart_exit);
570 576
571 module_param(reset, bool, 0644); 577 module_param(reset, bool, 0644);
572 MODULE_PARM_DESC(reset, "Send HCI reset command on initialization"); 578 MODULE_PARM_DESC(reset, "Send HCI reset command on initialization");
573 579
574 MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>"); 580 MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>");
575 MODULE_DESCRIPTION("Bluetooth HCI UART driver ver " VERSION); 581 MODULE_DESCRIPTION("Bluetooth HCI UART driver ver " VERSION);
576 MODULE_VERSION(VERSION); 582 MODULE_VERSION(VERSION);
577 MODULE_LICENSE("GPL"); 583 MODULE_LICENSE("GPL");
578 MODULE_ALIAS_LDISC(N_HCI); 584 MODULE_ALIAS_LDISC(N_HCI);
OLDNEW
« no previous file with comments | « drivers/bluetooth/hci_ath.c ('k') | drivers/bluetooth/hci_uart.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698