diff options
author | Eric Miao <eric.miao@marvell.com> | 2009-01-31 09:47:44 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-03-24 19:38:24 -0400 |
commit | 71b3e0c1ad90f28e34c105069175cbd4edb43dfa (patch) | |
tree | af7f1dd890d10acc33e36a923d2604ff26dfb071 /drivers/isdn | |
parent | 49b420a13ff95b449947181190b08367348e3e1b (diff) |
platform: make better use of to_platform_{device,driver}() macros
This helps the code look more consistent and cleaner.
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/gigaset/ser-gigaset.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isdn/gigaset/ser-gigaset.c b/drivers/isdn/gigaset/ser-gigaset.c index ac245e7e96a5..3071a52467ed 100644 --- a/drivers/isdn/gigaset/ser-gigaset.c +++ b/drivers/isdn/gigaset/ser-gigaset.c | |||
@@ -389,8 +389,7 @@ static void gigaset_freecshw(struct cardstate *cs) | |||
389 | 389 | ||
390 | static void gigaset_device_release(struct device *dev) | 390 | static void gigaset_device_release(struct device *dev) |
391 | { | 391 | { |
392 | struct platform_device *pdev = | 392 | struct platform_device *pdev = to_platform_device(dev); |
393 | container_of(dev, struct platform_device, dev); | ||
394 | 393 | ||
395 | /* adapted from platform_device_release() in drivers/base/platform.c */ | 394 | /* adapted from platform_device_release() in drivers/base/platform.c */ |
396 | //FIXME is this actually necessary? | 395 | //FIXME is this actually necessary? |