From 350d5560bb262e73e1f1c05bf488fea6750a52d6 Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Sat, 17 Oct 2009 04:47:35 +0400 Subject: Fix memleak in pcf50633_client_dev_registe Ported from 207ec43e8c5a54dfc82a0e65af5b8f2765e3cbb8 --- include/linux/mfd/pcf50606/core.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/linux/mfd/pcf50606/core.h b/include/linux/mfd/pcf50606/core.h index a51b1b548c2..e036e07064c 100644 --- a/include/linux/mfd/pcf50606/core.h +++ b/include/linux/mfd/pcf50606/core.h @@ -38,10 +38,6 @@ struct pcf50606_platform_data { u8 resumers[3]; }; -struct pcf50606_subdev_pdata { - struct pcf50606 *pcf; -}; - struct pcf50606_irq { void (*handler)(int, void *); void *data; @@ -166,5 +162,11 @@ enum pcf50606_reg_int3 { #define PCF50606_REG_OOCC1 0x08 #define PCF50606_OOCC1_GOSTDBY 0x01 + +static inline struct pcf50606 *dev_to_pcf50606(struct device *dev) +{ + return dev_get_drvdata(dev); +} + #endif -- cgit v1.2.3