From patchwork Wed Jan 17 21:30:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Folkesson X-Patchwork-Id: 10172003 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DCA76603B5 for ; Wed, 17 Jan 2018 21:30:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC8CF1FFE5 for ; Wed, 17 Jan 2018 21:30:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C16C624151; Wed, 17 Jan 2018 21:30:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59CE926224 for ; Wed, 17 Jan 2018 21:30:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752778AbeAQVae (ORCPT ); Wed, 17 Jan 2018 16:30:34 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:43840 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752769AbeAQVad (ORCPT ); Wed, 17 Jan 2018 16:30:33 -0500 Received: by mail-lf0-f67.google.com with SMTP id o89so19718767lfg.10; Wed, 17 Jan 2018 13:30:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=7+tR8bXs4o5dWSSvbr+JJu/ViPGQJ9KKjSa6ja8I0lg=; b=Ytb0h9zkLOBTLTOodGj1cgt8x5iB/11dwGPEBnBnxp3jUVTERjZLoLLjGPLy9tNi9h 23uRFln0b8+E6irUjqX6UpszAmShr5sVEoq+Reng5FW0nXoPR1CyvbGB7YBypqd2rMj7 R7sEuU19RIDN4KeCfxYx3G/uGg63wIEOQ3MZ8BXdaahWf8Xv7TQKNof1oJPgw9U/B9EK U/GLC0sWEqLilhRK2ss1+LRAlSgpEH9y+tfF52PDLZo10BP7hcxnr8h14b+/kle9uszh e/YALrxFbVcNSU3WVOIFs4WUfHZauvOa3wEfNM+YsJmgt2CvI31sH5xyrYsXHP5riQ6M UE+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7+tR8bXs4o5dWSSvbr+JJu/ViPGQJ9KKjSa6ja8I0lg=; b=lH0IRhqWMtNj5SLZ/X8EX6qzDHeZEjGo3a4sHbZLtQll9kdzVfV+tlmuXBv7xluKg3 1Qfn7mpUeUqNoyXWzKM3dwRfcyXojpfD0RWkqp2XG6XYxZ1DvbxgBuYHphSGpioE/abF /7BYIS9jbWFHjHhuszFWbT64rwawxGKwFubdxg8vU9n/v7skXKksChoHHMO1E7dEMqno iR/jl0NfwoSP1PytqfELnCWyP9lSbqXqXmXpy3CSYeRydD+5zWaZzZZ5b3sFRxDw1yVm +5hzoq1P8cTKxCRBUvlVHyUR4A5jAZvr+RAnjDxKo3aJnknLBpTO5k35hMnwKc9AOnRR eY4g== X-Gm-Message-State: AKwxytfScTi8RHEbRI5Aahko66j/+uDatnaCQl4XJZvB/S+o4VJ7eCLx 0T+h+mKvEfTht0ryjXRhMJo= X-Google-Smtp-Source: ACJfBotyPKc/76waKfL4kcnITHxVlWiByhxEqPhbnuYCx1WgOXq8Juw8wL01PKkte4+HnzcZfrVWaA== X-Received: by 10.25.29.67 with SMTP id d64mr2120687lfd.145.1516224632089; Wed, 17 Jan 2018 13:30:32 -0800 (PST) Received: from localhost.localdomain (c-2ec2e669-74736162.cust.telenor.se. [46.194.230.105]) by smtp.gmail.com with ESMTPSA id q77sm960282lfd.17.2018.01.17.13.30.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jan 2018 13:30:30 -0800 (PST) From: Marcus Folkesson To: Dmitry Torokhov , Marcus Folkesson , Tomohiro Yoshidomi , David Herrmann Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] input: joystick: make USB drivers depend on USB Date: Wed, 17 Jan 2018 22:30:10 +0100 Message-Id: <20180117213010.810-1-marcus.folkesson@gmail.com> X-Mailer: git-send-email 2.15.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A driver should not enable an entire subsystem. Signed-off-by: Marcus Folkesson --- drivers/input/joystick/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/input/joystick/Kconfig b/drivers/input/joystick/Kconfig index 332c0cc1b2ab..4a199cff8c68 100644 --- a/drivers/input/joystick/Kconfig +++ b/drivers/input/joystick/Kconfig @@ -279,8 +279,7 @@ config JOYSTICK_JOYDUMP config JOYSTICK_XPAD tristate "X-Box gamepad support" - depends on USB_ARCH_HAS_HCD - select USB + depends on USB help Say Y here if you want to use the X-Box pad with your computer. Make sure to say Y to "Joystick support" (CONFIG_INPUT_JOYDEV)