This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Removal of entire module from kernel

Hi Experts,

I would like to disable the entire hardware module from the linux kernel.

Say I am  not using the SPI interface is it possible to disable all interrupts and programs related to the SPI interface ?

Is it achieved through the simple "make menuconfig" or have to do it further down inside the kernel ?

The prime objective is to disable all the events and interrupts related to that module.

  • Hi Lyf,

    Say I am  not using the SPI interface is it possible to disable all interrupts and programs related to the SPI interface ?

    Is it achieved through the simple "make menuconfig" or have to do it further down inside the kernel ?

    The prime objective is to disable all the events and interrupts related to that module.

    Yes. That is sufficient.

    If you don't want SPI support, then you can disable "SPI Support" in menuconfig.