The OED prefers 'adviser', but says that 'advisor' is often used, particularly in the US, 'in the titles of persons whose function it is to give advice.'