Skip to content

Commit

Permalink
cxl: Remove dead code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Frederic Barrat authored and Michael Ellerman committed Apr 11, 2016
1 parent bdf5fc6 commit d88e397
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions drivers/misc/cxl/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d88e397

Please sign in to comment.