http://www.nikonchat.com/flash-nikon/

How do you reset the default flash mode on a Nikon D40?
The default flash mode on my Nikon D40 is Auto. I would like to auto-reduction red eye. I know how to change each time I use … but I would like that to be the default mode. Anyone? Sorry, that does not work. I've set to auto Red-eye a dozen times, and when you turn the camera jumps back to just cars.
…. If set as such, the camera will not change when you turn it off. That is one reason that people buy these kinds of cameras. Just as well established, and remains so until you change it. Alternatively, you could be using a setup mode, in which case you will not be able to change the default values, so most people with the shooting D40 to P (programmed) mode or modes of ASM also.
Warm Nikon off camera ttl flash self portrait