diff options
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? |