Without release callback of struct device, it gives below
warning when unload module.
Device 'extcon_usb_fixed.0' does not have a release() function, it is broken and must be fixed. See Documentation/core-api/kobject.rst.
WARNING: CPU: 2 PID: 1385 at drivers/base/core.c:2508 device_release+0x88/0xa0
Change-Id: If34a757ca420c14a410731ca0cf45986ddfd5193
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
EXTCON_NONE,
};
+static void extcon_usb_fixed_dev_release(struct device *dev) {}
+
static struct platform_device extcon_usb_fixed_dev = {
.name = "extcon_usb_fixed",
+ .dev.release = extcon_usb_fixed_dev_release,
};
static int fixed_usb_extcon_init(void)