cxl: Remove dead code
authorFrederic Barrat <[email protected]>
Wed, 9 Mar 2016 11:53:13 +0000 (12:53 +0100)
committerMichael Ellerman <[email protected]>
Mon, 11 Apr 2016 01:23:39 +0000 (11:23 +1000)
Function cxl_get_phys_dev() was removed from the kernel API by a
previous patch, but it's actually dead code. Remove it.

Signed-off-by: Frederic Barrat <[email protected]>
Acked-by: Ian Munsie <[email protected]>
Reviewed-by: Andrew Donnellan <[email protected]>
Acked-by: Michael Neuling <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
drivers/misc/cxl/api.c

index 2107c948406d359e6a305ebcc4ba495d0f8f51d8..807582335a9848e2dc8c9f0eedb80105b5dc6fae 100644 (file)
@@ -68,15 +68,6 @@ struct cxl_context *cxl_get_context(struct pci_dev *dev)
 }
 EXPORT_SYMBOL_GPL(cxl_get_context);
 
-struct device *cxl_get_phys_dev(struct pci_dev *dev)
-{
-       struct cxl_afu *afu;
-
-       afu = cxl_pci_to_afu(dev);
-
-       return afu->adapter->dev.parent;
-}
-
 int cxl_release_context(struct cxl_context *ctx)
 {
        if (ctx->status >= STARTED)