In the near future, the driver core is going to not allow direct accessto the driver_data pointer in struct device. Instead, the functionsdev_get_drvdata() and dev_set_drvdata() should be used. These functionshave been around since the beginning, so are backwards compatible withall older kernel versions.