diff options
author | Dan Williams <dan.j.williams@intel.com> | 2022-05-18 21:38:29 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2022-07-09 16:41:02 -0700 |
commit | 885d3bed6de153bfeba40e4d25cc600bef8af1b8 (patch) | |
tree | 422b154318ad5bf8b0b3aec71f1f7092da12cdab /drivers/cxl/core | |
parent | e50fe01e1f2a4aba2275edee7d5c77ac87674ddb (diff) | |
download | linux-stable-885d3bed6de153bfeba40e4d25cc600bef8af1b8.tar.gz linux-stable-885d3bed6de153bfeba40e4d25cc600bef8af1b8.tar.bz2 linux-stable-885d3bed6de153bfeba40e4d25cc600bef8af1b8.zip |
cxl/core: Drop is_cxl_decoder()
This helper was only used to identify the object type for lockdep
purposes. Now that lockdep support is done with explicit lock classes,
this helper can be dropped.
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Adam Manzanares <a.manzanares@samsung.com>
Link: https://lore.kernel.org/r/165603874340.551046.15491766127759244728.stgit@dwillia2-xfh
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl/core')
-rw-r--r-- | drivers/cxl/core/port.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/cxl/core/port.c b/drivers/cxl/core/port.c index 796c48591508..9b2df1353c2c 100644 --- a/drivers/cxl/core/port.c +++ b/drivers/cxl/core/port.c @@ -271,12 +271,6 @@ bool is_root_decoder(struct device *dev) } EXPORT_SYMBOL_NS_GPL(is_root_decoder, CXL); -bool is_cxl_decoder(struct device *dev) -{ - return dev->type && dev->type->release == cxl_decoder_release; -} -EXPORT_SYMBOL_NS_GPL(is_cxl_decoder, CXL); - struct cxl_decoder *to_cxl_decoder(struct device *dev) { if (dev_WARN_ONCE(dev, dev->type->release != cxl_decoder_release, |