Skip to content

Commit

Permalink
drivers: saic: remove stubbed functions
Browse files Browse the repository at this point in the history
With the commit b2d6db2 ("core: interrupt: helper function for
raise_pi, raise_sgi, set_affinity") the struct itr_ops .raise_pi,
.raise_sgi, and .set_affinity are now optional so remove the stubbed
functions.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
jenswi-linaro committed Oct 12, 2023
1 parent b0f389b commit c820a37
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions core/drivers/atmel_saic.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,32 +130,12 @@ static void saic_disable(struct itr_chip *chip __unused, size_t it)
saic_write_reg(AT91_AIC_IDCR, 1);
}

static void saic_raise_pi(struct itr_chip *chip __unused, size_t it __unused)
{
panic();
}

static void saic_raise_sgi(struct itr_chip *chip __unused, size_t it __unused,
uint8_t cpu_mask __unused)
{
panic();
}

static void saic_set_affinity(struct itr_chip *chip __unused,
size_t it __unused, uint8_t cpu_mask __unused)
{
panic();
}

static const struct itr_ops saic_ops = {
.add = saic_add,
.mask = saic_disable,
.unmask = saic_enable,
.enable = saic_enable,
.disable = saic_disable,
.raise_pi = saic_raise_pi,
.raise_sgi = saic_raise_sgi,
.set_affinity = saic_set_affinity,
};

static int saic_dt_get_irq(const uint32_t *properties, int len,
Expand Down

0 comments on commit c820a37

Please sign in to comment.