NTB: namespacecheck cleanups
authorJon Mason <jon.mason@intel.com>
Sat, 19 Jan 2013 09:02:23 +0000 (02:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Jan 2013 23:45:51 +0000 (15:45 -0800)
Declare ntb_bus_type static to remove it from name space, and remove
unused ntb_get_max_spads function.  Found via `make namespacecheck`.

Signed-off-by: Jon Mason <jon.mason@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ntb/ntb_hw.c
drivers/ntb/ntb_transport.c

index 4c71b17f0166e4783868d4b95c52cb093e388ede..7d087bbab1902add365c1794c96a89575ca30af6 100644 (file)
@@ -236,20 +236,6 @@ void ntb_unregister_transport(struct ntb_device *ndev)
        ndev->ntb_transport = NULL;
 }
 
-/**
- * ntb_get_max_spads() - get the total scratch regs usable
- * @ndev: pointer to ntb_device instance
- *
- * This function returns the max 32bit scratchpad registers usable by the
- * upper layer.
- *
- * RETURNS: total number of scratch pad registers available
- */
-int ntb_get_max_spads(struct ntb_device *ndev)
-{
-       return ndev->limits.max_spads;
-}
-
 /**
  * ntb_write_local_spad() - write to the secondary scratchpad register
  * @ndev: pointer to ntb_device instance
index c0eca02eb6d074b4668c132403eb00ac38849d1e..903a72e7d112b6e8cda06947e2a0becf76965301 100644 (file)
@@ -212,7 +212,7 @@ static int ntb_client_remove(struct device *dev)
        return 0;
 }
 
-struct bus_type ntb_bus_type = {
+static struct bus_type ntb_bus_type = {
        .name = "ntb_bus",
        .match = ntb_match_bus,
        .probe = ntb_client_probe,