Use kobj_to_dev() instead of container_of(). Signed-off-by: Denis Efremov <[email protected]> Signed-off-by: Julia Lawall <[email protected]>