summaryrefslogtreecommitdiff
path: root/arch/nios2/platform/platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nios2/platform/platform.c')
-rw-r--r--arch/nios2/platform/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/platform/platform.c b/arch/nios2/platform/platform.c
index 9737a87121fa..7948f063f55d 100644
--- a/arch/nios2/platform/platform.c
+++ b/arch/nios2/platform/platform.c
@@ -28,7 +28,7 @@ static int __init nios2_soc_device_init(void)
struct soc_device_attribute *soc_dev_attr;
const char *machine;
- soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
+ soc_dev_attr = kzalloc_obj(*soc_dev_attr);
if (soc_dev_attr) {
machine = of_flat_dt_get_machine_name();
if (machine)