Commit 6d0dff1b4308c460ad2d9db4c25e9a7c73c82ecf
1 parent
4d4255e8f1
Exists in
v3.2_SMARCT335xPSP_04.06.00.11
and in
2 other branches
Add SmartReflex support early driver patches (0002-Smartreflex-limited-to-ES-1.0…
….patch) while working to get the driver upstream.
Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff
arch/arm/mach-omap2/am33xx-smartreflex-class2.c
... | ... | @@ -763,6 +763,12 @@ |
763 | 763 | int ret; |
764 | 764 | int i,j; |
765 | 765 | |
766 | + if (omap_rev() != AM335X_REV_ES1_0) { | |
767 | + dev_err(&pdev->dev, "%s: Smartreflex requires ES 1.0\n", | |
768 | + __func__); | |
769 | + return -EINVAL; | |
770 | + } | |
771 | + | |
766 | 772 | sr_info = kzalloc(sizeof(struct am33xx_sr), GFP_KERNEL); |
767 | 773 | if (!sr_info) { |
768 | 774 | dev_err(&pdev->dev, "%s: unable to allocate sr_info\n", |