Revert "thunderbolt: Prevent crash if non-active NVMem file is read"
authorNicholas Johnson <nicholas.johnson-opensource@outlook.com.au>
Mon, 13 Apr 2020 18:04:25 +0000 (02:04 +0800)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 16 Apr 2020 08:37:38 +0000 (11:37 +0300)
commitcbb5494ebce5dfafab27de01e7e8bfe6d7c6a27f
treeec4f3bf8bae55ca66f55ac91c25ddf3602183453
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
Revert "thunderbolt: Prevent crash if non-active NVMem file is read"

This reverts commit 03cd45d2e219301880cabc357e3cf478a500080f.

Commit 664f0549380c ("nvmem: core: use is_bin_visible for permissions")
incidentally adds support for write-only nvmem. Hence, this workaround
is no longer required, so drop it.

Signed-off-by: Nicholas Johnson <nicholas.johnson-opensource@outlook.com.au>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/switch.c