/* Use by IOMMU support to "guess" the right size IOPdir. Formula is something like memsize/(num_iommu * entry_size).  */
int count_parisc_driver(struct parisc_driver *driver)
/* Use by IOMMU support to "guess" the right size IOPdir. Formula is something like memsize/(num_iommu * entry_size).  */
int count_parisc_driver(struct parisc_driver *driver)
{
	struct match_count m = {
		.driver	= driver,
		.count	= 0,
	};
	for_each_padev(match_and_count, &m);
	return m.count;
}