Skip to content

Commit 91e0bf8

Browse files
Lorenzo Pieralisiwildea01
authored andcommitted
ACPI/IORT: Remove iort_node_match()
Commit 316ca88 ("ACPI/IORT: Remove linker section for IORT entries probing") removed the linker section for IORT entries probing. Since those IORT entries were the only iort_node_match() interface users, the iort_node_match() became obsolete and can then be removed. Remove the ACPI IORT iort_node_match() interface from the kernel. Acked-by: Marc Zyngier <marc.zyngier@arm.com> Acked-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent c6bb8f8 commit 91e0bf8

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

drivers/acpi/arm64/iort.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -234,21 +234,6 @@ static struct acpi_iort_node *iort_scan_node(enum acpi_iort_node_type type,
234234
return NULL;
235235
}
236236

237-
static acpi_status
238-
iort_match_type_callback(struct acpi_iort_node *node, void *context)
239-
{
240-
return AE_OK;
241-
}
242-
243-
bool iort_node_match(u8 type)
244-
{
245-
struct acpi_iort_node *node;
246-
247-
node = iort_scan_node(type, iort_match_type_callback, NULL);
248-
249-
return node != NULL;
250-
}
251-
252237
static acpi_status iort_match_node_callback(struct acpi_iort_node *node,
253238
void *context)
254239
{

include/linux/acpi_iort.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ void iort_deregister_domain_token(int trans_id);
3131
struct fwnode_handle *iort_find_domain_token(int trans_id);
3232
#ifdef CONFIG_ACPI_IORT
3333
void acpi_iort_init(void);
34-
bool iort_node_match(u8 type);
3534
u32 iort_msi_map_rid(struct device *dev, u32 req_id);
3635
struct irq_domain *iort_get_device_domain(struct device *dev, u32 req_id);
3736
void acpi_configure_pmsi_domain(struct device *dev);
@@ -41,7 +40,6 @@ void iort_set_dma_mask(struct device *dev);
4140
const struct iommu_ops *iort_iommu_configure(struct device *dev);
4241
#else
4342
static inline void acpi_iort_init(void) { }
44-
static inline bool iort_node_match(u8 type) { return false; }
4543
static inline u32 iort_msi_map_rid(struct device *dev, u32 req_id)
4644
{ return req_id; }
4745
static inline struct irq_domain *iort_get_device_domain(struct device *dev,

0 commit comments

Comments
 (0)