Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306833
b: refs/heads/master
c: 6935e0f
h: refs/heads/master
i:
  306831: 8e18ccb
v: v3
  • Loading branch information
David Herrmann authored and Gustavo Padovan committed May 9, 2012
1 parent 7fbbdb2 commit ba34a10
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bc3dd33cef001e61da0f71b5d8f918b3dbaa4a94
refs/heads/master: 6935e0f5181644201894f0b7fbe3d8910c18af05
2 changes: 1 addition & 1 deletion trunk/drivers/bluetooth/hci_ldisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ static int hci_uart_register_dev(struct hci_uart *hu)
hdev->close = hci_uart_close;
hdev->flush = hci_uart_flush;
hdev->send = hci_uart_send_frame;
hdev->parent = hu->tty->dev;
SET_HCIDEV_DEV(hdev, hu->tty->dev);

if (test_bit(HCI_UART_RAW_DEVICE, &hu->hdev_flags))
set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks);
Expand Down
3 changes: 1 addition & 2 deletions trunk/include/net/bluetooth/hci_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ struct hci_dev {

struct dentry *debugfs;

struct device *parent;
struct device dev;

struct rfkill *rfkill;
Expand Down Expand Up @@ -709,7 +708,7 @@ void hci_conn_init_sysfs(struct hci_conn *conn);
void hci_conn_add_sysfs(struct hci_conn *conn);
void hci_conn_del_sysfs(struct hci_conn *conn);

#define SET_HCIDEV_DEV(hdev, pdev) ((hdev)->parent = (pdev))
#define SET_HCIDEV_DEV(hdev, pdev) ((hdev)->dev.parent = (pdev))

/* ----- LMP capabilities ----- */
#define lmp_rswitch_capable(dev) ((dev)->features[0] & LMP_RSWITCH)
Expand Down
1 change: 0 additions & 1 deletion trunk/net/bluetooth/hci_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,6 @@ int hci_add_sysfs(struct hci_dev *hdev)

BT_DBG("%p name %s bus %d", hdev, hdev->name, hdev->bus);

dev->parent = hdev->parent;
dev_set_name(dev, "%s", hdev->name);

err = device_add(dev);
Expand Down

0 comments on commit ba34a10

Please sign in to comment.