ARM: pxa: stargate2: use device properties for at24 eeprom
[sfrench/cifs-2.6.git] / arch / arm / mach-pxa / stargate2.c
index df62bb23dbeead237320cc4cbf54093d1a25205d..bbea5fa9a140110fbb6970594b2985c604246c59 100644 (file)
 
 #include <linux/platform_data/i2c-pxa.h>
 #include <linux/platform_data/pcf857x.h>
-#include <linux/platform_data/at24.h>
 #include <linux/smc91x.h>
 #include <linux/gpio/machine.h>
 #include <linux/gpio.h>
 #include <linux/leds.h>
+#include <linux/property.h>
 
 #include <asm/types.h>
 #include <asm/setup.h>
@@ -795,9 +795,9 @@ static struct pcf857x_platform_data platform_data_pcf857x = {
        .context = NULL,
 };
 
-static struct at24_platform_data pca9500_eeprom_pdata = {
-       .byte_len = 256,
-       .page_size = 4,
+static const struct property_entry pca9500_eeprom_properties[] = {
+       PROPERTY_ENTRY_U32("pagesize", 4),
+       { }
 };
 
 /**
@@ -935,7 +935,7 @@ static struct i2c_board_info __initdata stargate2_i2c_board_info[] = {
        }, {
                .type = "24c02",
                .addr = 0x57,
-               .platform_data = &pca9500_eeprom_pdata,
+               .properties = pca9500_eeprom_properties,
        }, {
                .type = "max1238",
                .addr = 0x35,