L3GD20: Move to 0 based index

This commit is contained in:
Lorenz Meier 2015-02-03 13:46:52 +01:00
parent fac158f7e5
commit 8b6ce797b4
1 changed files with 2 additions and 2 deletions

View File

@ -445,7 +445,7 @@ L3GD20::~L3GD20()
delete _reports;
if (_class_instance != -1)
unregister_class_devname(GYRO_DEVICE_PATH, _class_instance);
unregister_class_devname(GYRO_BASE_DEVICE_PATH, _class_instance);
/* delete the perf counter */
perf_free(_sample_perf);
@ -469,7 +469,7 @@ L3GD20::init()
if (_reports == nullptr)
goto out;
_class_instance = register_class_devname(GYRO_DEVICE_PATH);
_class_instance = register_class_devname(GYRO_BASE_DEVICE_PATH);
reset();