diff options
author | Jon Mason <jon.mason@intel.com> | 2013-01-19 13:02:23 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-21 03:45:51 +0400 |
commit | 170d35a57cf2c87bbfdfe6ec0485f678bdb53737 (patch) | |
tree | 424a8bdeb349b530add74d6dfae736b2edbc7e84 /drivers/ntb | |
parent | d66d7ac2e09f26dbcd3bfbd8bb05e658de89719a (diff) | |
download | linux-170d35a57cf2c87bbfdfe6ec0485f678bdb53737.tar.xz |
NTB: namespacecheck cleanups
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>
Diffstat (limited to 'drivers/ntb')
-rw-r--r-- | drivers/ntb/ntb_hw.c | 14 | ||||
-rw-r--r-- | drivers/ntb/ntb_transport.c | 2 |
2 files changed, 1 insertions, 15 deletions
diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c index 4c71b17f0166..7d087bbab190 100644 --- a/drivers/ntb/ntb_hw.c +++ b/drivers/ntb/ntb_hw.c @@ -237,20 +237,6 @@ void ntb_unregister_transport(struct ntb_device *ndev) } /** - * 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 * @idx: index to the scratchpad register, 0 based diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c index c0eca02eb6d0..903a72e7d112 100644 --- a/drivers/ntb/ntb_transport.c +++ b/drivers/ntb/ntb_transport.c @@ -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, |