]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/powerpc/platforms/powernv/opal-xscom.c
Merge tag 'powerpc-4.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
[linux.git] / arch / powerpc / platforms / powernv / opal-xscom.c
index 81c0a943dea9bb581d0f6d663df5c431a5529127..22d5e1110dbb9e8a25d3c1c600b91897250eb642 100644 (file)
@@ -46,7 +46,7 @@ static scom_map_t opal_scom_map(struct device_node *dev, u64 reg, u64 count)
                        __func__, dev);
                return SCOM_MAP_INVALID;
        }
-       m = kmalloc(sizeof(struct opal_scom_map), GFP_KERNEL);
+       m = kmalloc(sizeof(*m), GFP_KERNEL);
        if (!m)
                return NULL;
        m->chip = be32_to_cpup(gcid);