summaryrefslogtreecommitdiff
path: root/drivers/bus/moxtet.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bus/moxtet.c')
-rw-r--r--drivers/bus/moxtet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/bus/moxtet.c b/drivers/bus/moxtet.c
index 7ce61d629a87..0d68c1a9f493 100644
--- a/drivers/bus/moxtet.c
+++ b/drivers/bus/moxtet.c
@@ -8,6 +8,7 @@
#include <dt-bindings/bus/moxtet.h>
#include <linux/bitops.h>
#include <linux/debugfs.h>
+#include <linux/hex.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/moxtet.h>
@@ -144,7 +145,7 @@ moxtet_alloc_device(struct moxtet *moxtet)
if (!get_device(moxtet->dev))
return NULL;
- dev = kzalloc(sizeof(*dev), GFP_KERNEL);
+ dev = kzalloc_obj(*dev);
if (!dev) {
put_device(moxtet->dev);
return NULL;