diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2015-10-20 11:23:37 +0300 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2015-10-23 07:31:46 +0300 |
commit | c3bc627e5403cdd91c2fdf69f19c4b0df3cc2a36 (patch) | |
tree | 70fd9219254e0107aefa8320005f3bfdcad42e66 | |
parent | 2f1711908ac92968e2d533616c4cdb8d7b848677 (diff) | |
download | linux-c3bc627e5403cdd91c2fdf69f19c4b0df3cc2a36.tar.xz |
misc/bt-host: Fix compile warnings
We have a bunch of unused functions.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r-- | drivers/misc/bt-host.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/misc/bt-host.c b/drivers/misc/bt-host.c index 1f6e1c49b4af..395c28f1acde 100644 --- a/drivers/misc/bt-host.c +++ b/drivers/misc/bt-host.c @@ -80,11 +80,6 @@ static void clr_wr_ptr(struct bt_host *bt_host) bt_outb(bt_host, BT_CTRL_CLR_WR_PTR, BT_CTRL); } -static int h2b_atn(struct bt_host *bt_host) -{ - return !!(bt_inb(bt_host, BT_CTRL) & BT_CTRL_H2B_ATN); -} - static void clr_h2b_atn(struct bt_host *bt_host) { bt_outb(bt_host, BT_CTRL_H2B_ATN, BT_CTRL); @@ -106,16 +101,6 @@ static void set_b2h_atn(struct bt_host *bt_host) bt_outb(bt_host, BT_CTRL_B2H_ATN, BT_CTRL); } -static int b2h_atn(struct bt_host *bt_host) -{ - return !!(bt_inb(bt_host, BT_CTRL) & BT_CTRL_B2H_ATN); -} - -static int h_busy(struct bt_host *bt_host) -{ - return !!(bt_inb(bt_host, BT_CTRL) & BT_CTRL_H_BUSY); -} - static char bt_read(struct bt_host *bt_host) { char result = bt_inb(bt_host, BT_BMC2HOST); @@ -258,7 +243,7 @@ static int bt_host_probe(struct platform_device *pdev) { struct device *dev; struct resource *res; - int rc, devno = MKDEV(MAJOR(bt_host_devt), 0); + int rc; if (!pdev || !pdev->dev.of_node) return -ENODEV; |