aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hid/wacom_sys.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c
index abb7fdf05d92..e06af5b9f59e 100644
--- a/drivers/hid/wacom_sys.c
+++ b/drivers/hid/wacom_sys.c
@@ -1778,24 +1778,6 @@ static int wacom_probe(struct hid_device *hdev,
1778 features->device_type |= WACOM_DEVICETYPE_PEN; 1778 features->device_type |= WACOM_DEVICETYPE_PEN;
1779 } 1779 }
1780 1780
1781 /* Note that if query fails it is not a hard failure */
1782 wacom_query_tablet_data(hdev, features);
1783
1784 /* touch only Bamboo doesn't support pen */
1785 if ((features->type == BAMBOO_TOUCH) &&
1786 (features->device_type & WACOM_DEVICETYPE_PEN)) {
1787 error = -ENODEV;
1788 goto fail_shared_data;
1789 }
1790
1791 /* pen only Bamboo neither support touch nor pad */
1792 if ((features->type == BAMBOO_PEN) &&
1793 ((features->device_type & WACOM_DEVICETYPE_TOUCH) ||
1794 (features->device_type & WACOM_DEVICETYPE_PAD))) {
1795 error = -ENODEV;
1796 goto fail_shared_data;
1797 }
1798
1799 wacom_calculate_res(features); 1781 wacom_calculate_res(features);
1800 1782
1801 wacom_update_name(wacom); 1783 wacom_update_name(wacom);
@@ -1833,6 +1815,24 @@ static int wacom_probe(struct hid_device *hdev,
1833 goto fail_hw_start; 1815 goto fail_hw_start;
1834 } 1816 }
1835 1817
1818 /* Note that if query fails it is not a hard failure */
1819 wacom_query_tablet_data(hdev, features);
1820
1821 /* touch only Bamboo doesn't support pen */
1822 if ((features->type == BAMBOO_TOUCH) &&
1823 (features->device_type & WACOM_DEVICETYPE_PEN)) {
1824 error = -ENODEV;
1825 goto fail_hw_start;
1826 }
1827
1828 /* pen only Bamboo neither support touch nor pad */
1829 if ((features->type == BAMBOO_PEN) &&
1830 ((features->device_type & WACOM_DEVICETYPE_TOUCH) ||
1831 (features->device_type & WACOM_DEVICETYPE_PAD))) {
1832 error = -ENODEV;
1833 goto fail_hw_start;
1834 }
1835
1836 if (features->device_type & WACOM_DEVICETYPE_WL_MONITOR) 1836 if (features->device_type & WACOM_DEVICETYPE_WL_MONITOR)
1837 error = hid_hw_open(hdev); 1837 error = hid_hw_open(hdev);
1838 1838