|
@@ -20,7 +20,7 @@
|
|
|
#include <linux/serial_core.h>
|
|
|
#include <linux/serial_s3c.h>
|
|
|
#include <linux/dm9000.h>
|
|
|
-#include <linux/platform_data/at24.h>
|
|
|
+#include <linux/property.h>
|
|
|
#include <linux/platform_device.h>
|
|
|
#include <linux/gpio_keys.h>
|
|
|
#include <linux/i2c.h>
|
|
@@ -481,15 +481,15 @@ static struct platform_device mini2440_audio = {
|
|
|
/*
|
|
|
* I2C devices
|
|
|
*/
|
|
|
-static struct at24_platform_data at24c08 = {
|
|
|
- .byte_len = SZ_8K / 8,
|
|
|
- .page_size = 16,
|
|
|
+static const struct property_entry mini2440_at24_properties[] = {
|
|
|
+ PROPERTY_ENTRY_U32("pagesize", 16),
|
|
|
+ { }
|
|
|
};
|
|
|
|
|
|
static struct i2c_board_info mini2440_i2c_devs[] __initdata = {
|
|
|
{
|
|
|
I2C_BOARD_INFO("24c08", 0x50),
|
|
|
- .platform_data = &at24c08,
|
|
|
+ .properties = mini2440_at24_properties,
|
|
|
},
|
|
|
};
|
|
|
|