net: dsa: mt7530: Convert to platform remove callback returning void
Uwe Kleine-König authored

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.
To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new() which already returns void. Eventually after all drivers
are converted, .remove_new() is renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Reviewed-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
Acked-by: default avatarDaniel Golle <daniel@makrotopia.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
9764bbad
Name Last commit Last update
Documentation dt-bindings: arm: mediatek: mt7622-wed: add WED binding for MT7988 SoC
LICENSES LICENSES: Add the copyleft-next-0.3.1 license
arch Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
block block: fix pin count management when merging same-page segments
certs certs: Reference revocation list for all keyrings
crypto Merge tag 'v6.6-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
drivers net: dsa: mt7530: Convert to platform remove callback returning void
fs Merge tag 'trace-v6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
include net: ethernet: mtk_wed: introduce hw_rro support for MT7988
init Merge tag 'wq-for-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq
io_uring Revert "io_uring: fix IO hang in io_wq_put_and_exit from do_exit()"
ipc Merge tag 'x86_shstk_for_6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
kernel Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
lib Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
mm Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
net ipv6: lockless IPV6_ADDR_PREFERENCES implementation
rust Merge tag 'docs-6.6' of git://git.lwn.net/linux
samples selftests/bpf: trace_helpers.c: Optimize kallsyms cache
scripts Merge tag 'parisc-for-6.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
security Merge tag 'landlock-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux
sound Merge tag 'sound-fix-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
tools kselftest: rtnetlink: add pause and pause on fail flag
usr initramfs: Encode dependency on KBUILD_BUILD_TIMESTAMP
virt Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
.clang-format iommu: Add for_each_group_device()
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.