> > Which kernel version are you running?
>
> Sorry, this was a 2.6.26-rc3 based kernel with the gpio-sysfs patch from
> David, e.g.,
http://marc.info/?l=linux-kernel&m=121107105300923&w=2,
> which introduces a call to device_unregister via gpiochip_unexport(chip);
> in gpiochip_remove.