I was happily controlling Shiftbrite LEDs using SPI and Python based on this code
Today I upgraded my Pi using
sudo apt-get update && sudo apt-get dist-upgrade
sudo rpi-update
Now my script no longer works. I get this error:
File "/home/pi/shiftbrite/go.py", line 81, in <module>
fcntl.ioctl(spidev, 0x40046b04, array.array('L', [5000000]))
IOError: [Errno 25] Inappropriate ioctl for device
Might the value 0x40046b04 need to change since the upgrade? And I wonder if it was the upgrade to Raspbian or the Pi firmware that caused this.