Commit ae07abdb authored by Wei Yongjun's avatar Wei Yongjun Committed by Jon Mason
Browse files

ntb_hw_switchtec: Make function switchtec_ntb_remove() static



Fixes the following sparse warnings:

drivers/ntb/hw/mscc/ntb_hw_switchtec.c:1552:6: warning:
 symbol 'switchtec_ntb_remove' was not declared. Should it be static?

Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarLogan Gunthorpe <logang@deltatee.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent 2e2bc5a9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1549,7 +1549,7 @@ free_and_exit:
	return rc;
}

void switchtec_ntb_remove(struct device *dev,
static void switchtec_ntb_remove(struct device *dev,
				 struct class_interface *class_intf)
{
	struct switchtec_dev *stdev = to_stdev(dev);