Normally, you must write your applications so that they are always prepared to re-issue a transaction if it gets rolled back because of a deadlock.
http://dev.mysql.com/doc/refman/5.1/en/innodb-deadlocks.html
The manual suggests that no such configuration option exists.