diff options
author | Paul Fertser <fercerpav@gmail.com> | 2009-10-17 04:47:35 +0400 |
---|---|---|
committer | Paul Fertser <fercerpav@gmail.com> | 2009-10-17 04:52:57 +0400 |
commit | 350d5560bb262e73e1f1c05bf488fea6750a52d6 (patch) | |
tree | 46a2abf96452b8c7abcb206dba8176e60083e23e /include | |
parent | 3daf677d5e8e4d6a89845952e0a503c4bd57e456 (diff) |
Fix memleak in pcf50633_client_dev_registe
Ported from 207ec43e8c5a54dfc82a0e65af5b8f2765e3cbb8
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/pcf50606/core.h | 10 |
1 files changed, 6 insertions, 4 deletions
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 |