]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/tiny/st7735r: No need to set ->owner for spi_register_driver()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 31 Jan 2020 20:49:28 +0000 (22:49 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 10 Feb 2020 01:54:47 +0000 (02:54 +0100)
The spi_register_driver() will set the ->owner member to THIS_MODULE.

Cc: Noralf Trønnes <noralf@tronnes.org>
Cc: dri-devel@lists.freedesktop.org
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: David Lechner <david@lechnology.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200131204923.48928-4-andriy.shevchenko@linux.intel.com
drivers/gpu/drm/tiny/st7735r.c

index a844cde6d14a65ded47a5096b9475c4a26ff70df..3cd9b8d9888d639607da4701ae9fbad4f17a34d1 100644 (file)
@@ -276,7 +276,6 @@ static void st7735r_shutdown(struct spi_device *spi)
 static struct spi_driver st7735r_spi_driver = {
        .driver = {
                .name = "st7735r",
-               .owner = THIS_MODULE,
                .of_match_table = st7735r_of_match,
        },
        .id_table = st7735r_id,