The non-inheriting spouse may not be entitled to an equal share of the farm on divorce but their needs (and those of any minor children) must be met.  They may need capital to house themselves (and any children who will not continue to live on the farm), plus income and pension provision.