Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc/powernv: remove get_cxl_module

The static inline get_cxl_module function is entirely unused since commit
8bf6b91a5125a ("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>

authored by

Christoph Hellwig and committed by
Jessica Yu
8b1b4ecc ec2a2959

-22
-22
arch/powerpc/platforms/powernv/pci-cxl.c
··· 150 150 return 0; 151 151 } 152 152 EXPORT_SYMBOL(pnv_cxl_ioda_msi_setup); 153 - 154 - #if IS_MODULE(CONFIG_CXL) 155 - static inline int get_cxl_module(void) 156 - { 157 - struct module *cxl_module; 158 - 159 - mutex_lock(&module_mutex); 160 - 161 - cxl_module = find_module("cxl"); 162 - if (cxl_module) 163 - __module_get(cxl_module); 164 - 165 - mutex_unlock(&module_mutex); 166 - 167 - if (!cxl_module) 168 - return -ENODEV; 169 - 170 - return 0; 171 - } 172 - #else 173 - static inline int get_cxl_module(void) { return 0; } 174 - #endif