openwrt/package
Sungbo Eo e242125d71 kernel: fix *-gpio-custom module unloading
Unloading and reloading the modules fails, as platform_device_put() does not
release resources fully.

root@OpenWrt:/# insmod i2c-gpio-custom bus0=0,18,0,5
[  196.860620] Custom GPIO-based I2C driver version 0.1.1
[  196.871162] ------------[ cut here ]------------
[  196.880517] WARNING: CPU: 0 PID: 1365 at fs/sysfs/dir.c:31 0x80112158
[  196.893431] sysfs: cannot create duplicate filename '/devices/platform/i2c-gpio.0'
...
[  197.513200] kobject_add_internal failed for i2c-gpio.0 with -EEXIST, don't try to register things with the same name in the same directory.

This patch fixes it by replacing platform_device_put() to
platform_device_unregister().

Fixes: da77408537 ("i2c-gpio-custom: minor bugfix")
Fixes: 3bc81edc70 ("package: fix w1-gpio-custom package (closes #6770)")

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
(cherry picked from commit a22b7a60d9)
2019-12-23 01:07:23 +01:00
..
base-files base-files: config_generate: split macaddr with multiple ifaces 2019-11-26 17:04:17 +01:00
boot ar71xx: update uboot-envtools for Netgear WNR routers 2019-11-12 16:31:09 +01:00
devel strace: Update to 4.22 2018-12-18 17:22:08 +01:00
firmware ath10k: update QCA4019 firmware 2018-12-27 16:38:13 +01:00
kernel kernel: fix *-gpio-custom module unloading 2019-12-23 01:07:23 +01:00
libs ustream-ssl: backport fix for CVE-2019-5101, CVE-2019-5102 2019-11-05 15:12:18 +01:00
network uhttpd: update to latest Git HEAD 2019-12-22 22:56:23 +01:00
system config: introduce separate CONFIG_SIGNATURE_CHECK option 2019-08-07 07:54:27 +02:00
utils bzip2: Fix CVE-2019-12900 2019-09-03 12:55:00 +02:00
Makefile packages: apply usign padding workarounds to package indexes if needed 2019-08-07 07:23:51 +02:00