Re: sdhci-pci or sdhci_pci

From: Richard Weinberger
Date: Thu Oct 15 2015 - 07:31:20 EST


On Thu, Oct 15, 2015 at 1:00 PM, Muni Sekhar <munisekharrms@xxxxxxxxx> wrote:
> [ Please keep me in CC as I'm not subscribed to the list]
>
> Hello,
>
> I loaded sdhci-pci.ko, but lsmod shows it as sdhci_pci.
> Why is that lsmod shows wrong module name( '-' changed to '_')?
>
>
> # lsmod
> Module Size Used by
> sdhci_pci 23301 0
> sdhci 43685 1 sdhci_pci

The problem is that module names must contain a dash. This is why kbuild
is renaming them.
IIRC because the modalias mechanism is using them.
CC'ing Rusty. Maybe he can give more details. :)

--
Thanks,
//richard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/