Modify devicetree driver style base for x86_64 PC

134 Views Asked by At

As I know, Device Tree driver style was for SoC, not for x86_64 platform.

However, if I want to use an already available driver but it is probed by devicetree, such as below.

Due to it is running x86_64 PC Ubuntu 20.04, and disable devicetree feature by default. Is any experience, suggestion here?

MODULE_DEVICE_TABLE(spi, xxx_spi_id);

static struct spi_driver xxx_spi_driver = {
        .driver = {
                .name   = XXXSPI_DRV_NAME,
                .of_match_table = xxx_spi_of_match,
        },
        .id_table = xxx_spi_id,
        .probe    = xxx_spi_probe,
        .remove   = xxx_spi_remove,
};
module_spi_driver(xxx_spi_driver);
0

There are 0 best solutions below