Re: [PATCH] mrst_pmu: driver for Intel Moorestown Power Management Unit
From: Len Brown
Date: Mon Aug 01 2011 - 11:25:01 EST
> > + BUG_ON(pci_dev_num != mrst_devs[index].pci_dev_num);
>
> That strikes me as needlessly unfriendly, you could warn/return NULL and
> propogate a WARN_ONCE back to the user.
If a fit of friendlyness, I wrote the patch below.
Let me know if it is not what you had in mind.
thanks
-Len