lkml.org 
[lkml]   [2022]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH 0/3] soc: Drop empty platform remove function
    Date
    Hello,

    this patch series removes all platform remove functions that only return
    zero below drivers/soc. There is no reason to have these, as the only
    caller is platform core code doing:

    if (drv->remove) {
    int ret = drv->remove(dev);

    if (ret)
    dev_warn(...)
    }

    (in platform_remove()) and so having no remove function is both
    equivalent and simpler.

    Best regards
    Uwe

    Uwe Kleine-König (3):
    soc: bcm: bcm2835-power: Drop empty platform remove function
    soc: mediatek: mutex: Drop empty platform remove function
    soc: tegra: cbb: Drop empty platform remove function

    drivers/soc/bcm/bcm2835-power.c | 6 ------
    drivers/soc/mediatek/mtk-mutex.c | 6 ------
    drivers/soc/tegra/cbb/tegra234-cbb.c | 6 ------
    3 files changed, 18 deletions(-)


    base-commit: 830b3c68c1fb1e9176028d02ef86f3cf76aa2476
    --
    2.38.1

    \
     
     \ /
      Last update: 2022-12-12 23:26    [W:5.809 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site