diff options
Diffstat (limited to 'drivers/soundwire/amd_init.c')
| -rw-r--r-- | drivers/soundwire/amd_init.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/soundwire/amd_init.c b/drivers/soundwire/amd_init.c index 7db37f044850..8e419ddfa516 100644 --- a/drivers/soundwire/amd_init.c +++ b/drivers/soundwire/amd_init.c @@ -104,8 +104,7 @@ static struct sdw_amd_ctx *sdw_amd_probe_controller(struct sdw_amd_res *res) ctx->count = count; ctx->link_mask = res->link_mask; - struct resource *sdw_res __free(kfree) = kzalloc_obj(*sdw_res, - GFP_KERNEL); + struct resource *sdw_res __free(kfree) = kzalloc_obj(*sdw_res); if (!sdw_res) { kfree(ctx); return NULL; @@ -205,8 +204,7 @@ int sdw_amd_get_slave_info(struct sdw_amd_ctx *ctx) num_slaves++; } - ctx->peripherals = kmalloc_flex(*ctx->peripherals, array, num_slaves, - GFP_KERNEL); + ctx->peripherals = kmalloc_flex(*ctx->peripherals, array, num_slaves); if (!ctx->peripherals) return -ENOMEM; ctx->peripherals->num_peripherals = num_slaves; |
