summaryrefslogtreecommitdiff
path: root/drivers/platform/surface/surface_dtx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/surface/surface_dtx.c')
-rw-r--r--drivers/platform/surface/surface_dtx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/surface/surface_dtx.c b/drivers/platform/surface/surface_dtx.c
index 43a8c23b2bf0..d6cd56970479 100644
--- a/drivers/platform/surface/surface_dtx.c
+++ b/drivers/platform/surface/surface_dtx.c
@@ -403,7 +403,7 @@ static int surface_dtx_open(struct inode *inode, struct file *file)
struct sdtx_client *client;
/* Initialize client. */
- client = kzalloc_obj(*client, GFP_KERNEL);
+ client = kzalloc_obj(*client);
if (!client)
return -ENOMEM;
@@ -1044,7 +1044,7 @@ static struct sdtx_device *sdtx_device_create(struct device *dev, struct ssam_co
struct sdtx_device *ddev;
int status;
- ddev = kzalloc_obj(*ddev, GFP_KERNEL);
+ ddev = kzalloc_obj(*ddev);
if (!ddev)
return ERR_PTR(-ENOMEM);