summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-max31335.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-max31335.c')
-rw-r--r--drivers/rtc/rtc-max31335.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-max31335.c b/drivers/rtc/rtc-max31335.c
index 952b455071d6..595816973851 100644
--- a/drivers/rtc/rtc-max31335.c
+++ b/drivers/rtc/rtc-max31335.c
@@ -745,8 +745,8 @@ static int max31335_probe(struct i2c_client *client)
}
static const struct i2c_device_id max31335_id[] = {
- { "max31331", (kernel_ulong_t)&chip[ID_MAX31331] },
- { "max31335", (kernel_ulong_t)&chip[ID_MAX31335] },
+ { .name = "max31331", .driver_data = (kernel_ulong_t)&chip[ID_MAX31331] },
+ { .name = "max31335", .driver_data = (kernel_ulong_t)&chip[ID_MAX31335] },
{ }
};