HMC driver: Device ID should come from the main instance, not the interface

This commit is contained in:
Lorenz Meier
2017-01-29 16:20:44 +01:00
parent a520c62d1a
commit be2c73e9c3
-3
View File
@@ -762,9 +762,6 @@ HMC5883::ioctl(struct file *filp, int cmd, unsigned long arg)
case MAGIOCSTEMPCOMP:
return set_temperature_compensation(arg);
case DEVIOCGDEVICEID:
return _interface->ioctl(cmd, dummy);
default:
/* give it to the superclass */
return CDev::ioctl(filp, cmd, arg);