This machine driver is a platform driver, and hence will only be
instantiated on the correct machines. Hence, there is no need to
check the current machine during probe.
(Applying Mark's TrimSlice review comments to the existing driver)
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
struct tegra_wm8903_platform_data *pdata;
int ret;
- if (!machine_is_harmony() && !machine_is_ventana() &&
- !machine_is_seaboard() && !machine_is_kaen() &&
- !machine_is_aebl()) {
- dev_err(&pdev->dev, "Not running on a supported board!\n");
- return -ENODEV;
- }
-
pdata = pdev->dev.platform_data;
if (!pdata) {
dev_err(&pdev->dev, "No platform data supplied\n");