tpm: Move call to tpm_option_rom into init_optionrom

Move the call to measure the option ROM 'tpm_option_rom' into
init_optionrom.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
diff --git a/src/optionroms.c b/src/optionroms.c
index 7906908..a24c539 100644
--- a/src/optionroms.c
+++ b/src/optionroms.c
@@ -81,7 +81,6 @@
         if (EnforceChecksum)
             return 0;
     }
-    tpm_option_rom(rom, len);
     return 1;
 }
 
@@ -134,6 +133,8 @@
     if (newrom != rom)
         memmove(newrom, rom, rom->size * 512);
 
+    tpm_option_rom(newrom, rom->size * 512);
+
     if (isvga || get_pnp_rom(newrom))
         // Only init vga and PnP roms here.
         callrom(newrom, bdf);