powerpc/macintosh: Fix wrong test in fan_{read,write}_reg()