/* li_destroy destroys the lithium_t structure and vm mappings.  */
static void li_destroy(lithium_t *lith)
/* li_destroy destroys the lithium_t structure and vm mappings.  */
static void li_destroy(lithium_t *lith)
{
	if (lith->page0) {
		iounmap(lith->page0);
		lith->page0 = NULL;
	}
	if (lith->page1) {
		iounmap(lith->page1);
		lith->page1 = NULL;
	}
	if (lith->page2) {
		iounmap(lith->page2);
		lith->page2 = NULL;
	}
}