lkml.org 
[lkml]   [2019]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 013/117] mfd: tps65912-spi: Add missing of table registration
    Date
    [ Upstream commit 9e364e87ad7f2c636276c773d718cda29d62b741 ]

    MODULE_DEVICE_TABLE(of, <of_match_table> should be called to complete DT
    OF mathing mechanism and register it.

    Before this patch:
    modinfo drivers/mfd/tps65912-spi.ko | grep alias
    alias: spi:tps65912

    After this patch:
    modinfo drivers/mfd/tps65912-spi.ko | grep alias
    alias: of:N*T*Cti,tps65912C*
    alias: of:N*T*Cti,tps65912
    alias: spi:tps65912

    Reported-by: Javier Martinez Canillas <javier@dowhile0.org>
    Signed-off-by: Daniel Gomez <dagmcr@gmail.com>
    Signed-off-by: Lee Jones <lee.jones@linaro.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/mfd/tps65912-spi.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/mfd/tps65912-spi.c b/drivers/mfd/tps65912-spi.c
    index 4aeba9b6942a..ec37cfe32ca3 100644
    --- a/drivers/mfd/tps65912-spi.c
    +++ b/drivers/mfd/tps65912-spi.c
    @@ -27,6 +27,7 @@ static const struct of_device_id tps65912_spi_of_match_table[] = {
    { .compatible = "ti,tps65912", },
    { /* sentinel */ }
    };
    +MODULE_DEVICE_TABLE(of, tps65912_spi_of_match_table);

    static int tps65912_spi_probe(struct spi_device *spi)
    {
    --
    2.20.1


    \
     
     \ /
      Last update: 2019-06-20 20:04    [W:3.377 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site