Skip to content

Commit

Permalink
powerpc/powernv: remove get_cxl_module
Browse files Browse the repository at this point in the history
The static inline get_cxl_module function is entirely unused since commit
8bf6b91 ("Revert "powerpc/powernv: Add support for the cxl kernel
api on the real phb"), so remove it.

Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
  • Loading branch information
Christoph Hellwig authored and Jessica Yu committed Feb 8, 2021
1 parent ec2a295 commit 8b1b4ec
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions arch/powerpc/platforms/powernv/pci-cxl.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,25 +150,3 @@ int pnv_cxl_ioda_msi_setup(struct pci_dev *dev, unsigned int hwirq,
return 0;
}
EXPORT_SYMBOL(pnv_cxl_ioda_msi_setup);

#if IS_MODULE(CONFIG_CXL)
static inline int get_cxl_module(void)
{
struct module *cxl_module;

mutex_lock(&module_mutex);

cxl_module = find_module("cxl");
if (cxl_module)
__module_get(cxl_module);

mutex_unlock(&module_mutex);

if (!cxl_module)
return -ENODEV;

return 0;
}
#else
static inline int get_cxl_module(void) { return 0; }
#endif

0 comments on commit 8b1b4ec

Please sign in to comment.