Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fpga: dfl: make uinit callback optional

This patch makes uinit callback of sub features optional. With
this change, people don't need to prepare any empty uinit callback.

Signed-off-by: Wu Hao <hao.wu@intel.com>
Link: https://lore.kernel.org/r/1564914022-3710-9-git-send-email-hao.wu@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Wu Hao and committed by
Greg Kroah-Hartman
3c51ff77 15bbb300

+2 -1
+2 -1
drivers/fpga/dfl.c
··· 259 259 260 260 dfl_fpga_dev_for_each_feature(pdata, feature) 261 261 if (feature->ops) { 262 - feature->ops->uinit(pdev, feature); 262 + if (feature->ops->uinit) 263 + feature->ops->uinit(pdev, feature); 263 264 feature->ops = NULL; 264 265 } 265 266 }