summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpiolib-shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpiolib-shared.c')
-rw-r--r--drivers/gpio/gpiolib-shared.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib-shared.c b/drivers/gpio/gpiolib-shared.c
index a6f4d8babdb2..d2614ace4de1 100644
--- a/drivers/gpio/gpiolib-shared.c
+++ b/drivers/gpio/gpiolib-shared.c
@@ -84,8 +84,7 @@ static struct gpio_shared_ref *gpio_shared_make_ref(struct fwnode_handle *fwnode
{
char *con_id_cpy __free(kfree) = NULL;
- struct gpio_shared_ref *ref __free(kfree) = kzalloc_obj(*ref,
- GFP_KERNEL);
+ struct gpio_shared_ref *ref __free(kfree) = kzalloc_obj(*ref);
if (!ref)
return NULL;