From 170d35a57cf2c87bbfdfe6ec0485f678bdb53737 Mon Sep 17 00:00:00 2001 From: Jon Mason Date: Sat, 19 Jan 2013 02:02:23 -0700 Subject: 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 Signed-off-by: Greg Kroah-Hartman --- drivers/ntb/ntb_hw.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'drivers/ntb/ntb_hw.c') 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 @@ -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 -- cgit v1.2.3-58-ga151