]> git.baikalelectronics.ru Git - kernel.git/commit
ptp_pch: Switch to use module_pci_driver() macro
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 7 Feb 2022 21:07:28 +0000 (23:07 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Feb 2022 05:04:32 +0000 (21:04 -0800)
commit3a9e2af7e27c70257bad193fcb8da776c3fb3cd8
tree2ac9440aa28fac4ba492ad4d72fefb99c93e7501
parent17625f4177c23d917b1f2447562bd227c5b1db7e
ptp_pch: Switch to use module_pci_driver() macro

Eliminate some boilerplate code by using module_pci_driver() instead of
init/exit, and, if needed, moving the salient bits from init into probe.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220207210730.75252-4-andriy.shevchenko@linux.intel.com
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_pch.c