summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/mach-vpr200.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <brgl@bgdev.pl>2018-04-04 16:16:24 +0300
committerShawn Guo <shawnguo@kernel.org>2018-04-18 06:18:07 +0300
commitbbb83ac59f2c83c26d2e4390ae70ab7a06ee84ee (patch)
tree3fc6985fe7ef8898e2f202e1b1c8821c87edb828 /arch/arm/mach-imx/mach-vpr200.c
parentfe1bd78bf18a7cb3eb76fceea9193534fb6619e3 (diff)
downloadlinux-bbb83ac59f2c83c26d2e4390ae70ab7a06ee84ee.tar.xz
ARM: imx: vpr200: drop at24_platform_data
The information contained in the platform data struct is redundant. Page size == 1 is the safe default assumed if no pagesize property is given. The EEPROM size can be indicated to the driver using the correct model name. Drop the at24_platform_data entirely. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx/mach-vpr200.c')
-rw-r--r--arch/arm/mach-imx/mach-vpr200.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/arm/mach-imx/mach-vpr200.c b/arch/arm/mach-imx/mach-vpr200.c
index 5ff154c9a086..da3336aaa4c5 100644
--- a/arch/arm/mach-imx/mach-vpr200.c
+++ b/arch/arm/mach-imx/mach-vpr200.c
@@ -29,7 +29,6 @@
#include <asm/mach/time.h>
#include <linux/i2c.h>
-#include <linux/platform_data/at24.h>
#include <linux/mfd/mc13xxx.h>
#include "common.h"
@@ -145,15 +144,9 @@ static const struct imxi2c_platform_data vpr200_i2c0_data __initconst = {
.bitrate = 50000,
};
-static struct at24_platform_data vpr200_eeprom = {
- .byte_len = 2048 / 8,
- .page_size = 1,
-};
-
static struct i2c_board_info vpr200_i2c_devices[] = {
{
- I2C_BOARD_INFO("at24", 0x50), /* E0=0, E1=0, E2=0 */
- .platform_data = &vpr200_eeprom,
+ I2C_BOARD_INFO("24c02", 0x50), /* E0=0, E1=0, E2=0 */
}, {
I2C_BOARD_INFO("mc13892", 0x08),
.platform_data = &vpr200_pmic,