ethdev: change device info get callback to return int