[PATCH linux 01/13] misc/bt-host: Fix compile warnings
OpenBMC Patches
patches at stwcx.xyz
Fri Oct 23 04:59:01 AEDT 2015
From: Jeremy Kerr <jk at ozlabs.org>
We have a bunch of unused functions.
Signed-off-by: Jeremy Kerr <jk at ozlabs.org>
---
drivers/misc/bt-host.c | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/drivers/misc/bt-host.c b/drivers/misc/bt-host.c
index 1f6e1c4..395c28f 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;
--
2.6.0
More information about the openbmc
mailing list