ioctl버전 문제 일 수도 있다고 합니다. 아래와 같이 수정하여 테스트를 진행해 보시길 바랍니다.
static
int gpio_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
………………….
static
struct file_operations gpio_fops = {
.open = gpio_open,
.release = gpio_release,
.unlocked_ioctl = gpio_ioctl,
};