]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
powerpc/pseries/cmm: Implement release() function for sysfs device
authorDavid Hildenbrand <david@redhat.com>
Thu, 31 Oct 2019 14:29:22 +0000 (15:29 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 16:03:59 +0000 (10:03 -0600)
commit6182db0632ce4cf35e5e3b0de9a11efd3e18af03
tree4d72b7936f5948b5f6a760ae4ec20a115b8f30bd
parenta264a9e957dcf04246751109ffd6ec8f727d8fd5
powerpc/pseries/cmm: Implement release() function for sysfs device

BugLink: https://bugs.launchpad.net/bugs/1858429
[ Upstream commit 7d8212747435c534c8d564fbef4541a463c976ff ]

When unloading the module, one gets
  ------------[ cut here ]------------
  Device 'cmm0' does not have a release() function, it is broken and must be fixed. See Documentation/kobject.txt.
  WARNING: CPU: 0 PID: 19308 at drivers/base/core.c:1244 .device_release+0xcc/0xf0
  ...

We only have one static fake device. There is nothing to do when
releasing the device (via cmm_exit()).

Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191031142933.10779-2-david@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/powerpc/platforms/pseries/cmm.c