mfd: db8500-prcmu: Supply the pdata_size attribute for db8500-thermal
authorLee Jones <lee.jones@linaro.org>
Tue, 7 May 2013 11:01:32 +0000 (12:01 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 16 May 2013 22:42:32 +0000 (00:42 +0200)
The MFD subsystem requires drivers to state the size of any platform
data passed, or it will fail to assign it to the device. This will
culminate in a NULL platform_data attribute and normally a failure to
probe() or a kernel Oops.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/db8500-prcmu.c

index 319b8ab..5389368 100644 (file)
@@ -3095,6 +3095,7 @@ static struct mfd_cell db8500_prcmu_devs[] = {
                .num_resources = ARRAY_SIZE(db8500_thsens_resources),
                .resources = db8500_thsens_resources,
                .platform_data = &db8500_thsens_data,
+               .pdata_size = sizeof(db8500_thsens_data),
        },
 };