[PATCH 0/3] platform/x86: Drop empty platform remove functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

this series removes all platform remove functions that only return zero
below drivers/platform/x86. 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.


Uwe Kleine-König (3):
  platform/x86: acerhdf: Drop empty platform remove function
  platform/x86: intel: oaktrail: Drop empty platform remove function
  platform/x86: intel: punit_ipc: Drop empty platform remove function

 drivers/platform/x86/acerhdf.c         | 6 ------
 drivers/platform/x86/intel/oaktrail.c  | 6 ------
 drivers/platform/x86/intel/punit_ipc.c | 6 ------
 3 files changed, 18 deletions(-)


base-commit: 830b3c68c1fb1e9176028d02ef86f3cf76aa2476
-- 
2.38.1




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux