cxl: Remove dead code
authorFrederic Barrat <fbarrat@linux.vnet.ibm.com>
Wed, 9 Mar 2016 11:53:13 +0000 (12:53 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
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 <fbarrat@linux.vnet.ibm.com>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Acked-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
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)