aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ntb/ntb_hw.c
diff options
context:
space:
mode:
authorJon Mason <jon.mason@intel.com>2013-01-19 04:02:23 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-20 18:45:51 -0500
commit170d35a57cf2c87bbfdfe6ec0485f678bdb53737 (patch)
tree424a8bdeb349b530add74d6dfae736b2edbc7e84 /drivers/ntb/ntb_hw.c
parentd66d7ac2e09f26dbcd3bfbd8bb05e658de89719a (diff)
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/ntb_hw.c')
-rw-r--r--drivers/ntb/ntb_hw.c14
1 files changed, 0 insertions, 14 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)
237} 237}
238 238
239/** 239/**
240 * ntb_get_max_spads() - get the total scratch regs usable
241 * @ndev: pointer to ntb_device instance
242 *
243 * This function returns the max 32bit scratchpad registers usable by the
244 * upper layer.
245 *
246 * RETURNS: total number of scratch pad registers available
247 */
248int ntb_get_max_spads(struct ntb_device *ndev)
249{
250 return ndev->limits.max_spads;
251}
252
253/**
254 * ntb_write_local_spad() - write to the secondary scratchpad register 240 * ntb_write_local_spad() - write to the secondary scratchpad register
255 * @ndev: pointer to ntb_device instance 241 * @ndev: pointer to ntb_device instance
256 * @idx: index to the scratchpad register, 0 based 242 * @idx: index to the scratchpad register, 0 based