From patchwork Tue Mar 13 10:27:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 131426 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp545734ljb; Tue, 13 Mar 2018 03:27:25 -0700 (PDT) X-Google-Smtp-Source: AG47ELsmmq1jODw1N5v8Q8+epRoQA21GNIuLvcAhaSONPZEGzOR0EAYIioQgRsCKeYDoFks78TSo X-Received: by 2002:a17:902:3041:: with SMTP id u59-v6mr58267plb.115.1520936845834; Tue, 13 Mar 2018 03:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520936845; cv=none; d=google.com; s=arc-20160816; b=MXof5c4PuwJbWj8EgcB2+9vs/VCkxESNHqNVd0RkV83MnLlCCRvuEHUJK1Jn+Lpj9r sToFpG/5Fi1oG0oP0jLcj6J/cCc1C1x/xp1e3RBe27edn6XRpQAiuANfHOvs7ZBn6nNI 0CwH+lDuoQQSbxKbXhfCZkbhV1a6G1x9UYMt472SDvU0urZuliiEUKxobpOlVnb44oGQ 6/zzCa9xkMN7O0VrTTHuiJGfjlpzwNmLQv1vFLxrIFgIp0cdKgs8S2OsiV7NJAukvrkQ Y/807C4vlbKYjMMDnv+37gIOS2VxYMhAN2gMq8ibcSCr6wg6A5oaPpTgXS84L6sMeOkg cfKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=lC1SHdICdu8pNOZsLwtlj8ROb8MjwWor8U4CYRP9JiE=; b=X33M8jXO7oiym+n7UeWPm9Y2mCkgu4G87zoIFeNvPoS7rt4bPjaEEJJ1wjWTjrUdk3 7Y8YT6Cai+RuzPr2IlP8wV9Dc9YAdd1nIhp4Czj38bOMjLVsvH4VqN6IdsHFWyfA3qrl xSayl2WklpQ93SSXwyq+tDUloRTUrCXWnjz3mNn5FGrKX2dRwTA9kbZwlN988oo/Eril 7mpfDnxd244Tn1WppRSXMCaCEpjvi6NXL6LJc4ly9TckDTFkhhKGwEt74a0S6AM4SINE sswttqkipbSfxFOxP1tyIK69UDVRxhz0Fsg3+YiKiRO5F38f/7HF/HooBs/oe5WgnbJM Zmbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=vahd99yL; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v187si42186pfv.25.2018.03.13.03.27.25; Tue, 13 Mar 2018 03:27:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=vahd99yL; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932566AbeCMK1Y (ORCPT + 3 others); Tue, 13 Mar 2018 06:27:24 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:44423 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932521AbeCMK1X (ORCPT ); Tue, 13 Mar 2018 06:27:23 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180313102720euoutp026522d9743f04bc65173ff5ead2f60e3a~bc-_izvgv0370703707euoutp02H; Tue, 13 Mar 2018 10:27:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180313102720euoutp026522d9743f04bc65173ff5ead2f60e3a~bc-_izvgv0370703707euoutp02H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1520936840; bh=6HMUZ9ymlMbUhYZQrqAvZi3pKMl5ALOHaB4oK1f2AQY=; h=From:To:Cc:Subject:Date:References:From; b=vahd99yL/gOvfJPEqWbsjK3MMJCNk/HVkQ3oZ3aSfjJCdY36LipUd4+OmHq/ko9am /B/GiXv2hHPbokotQPC3rRxbmX6+dIxg6O6gMGSUYhf5x/OKTWjYCKGyA7XJgeickX 0+D2t9zZ20LGFZUD5QjzN1HpYrSGqdtF77eIC3fI= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180313102720eucas1p2bac18b8903b0d2c66fac0a42dc6a39fc~bc-9w7Z740091400914eucas1p2J; Tue, 13 Mar 2018 10:27:20 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id C4.71.05700.787A7AA5; Tue, 13 Mar 2018 10:27:19 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180313102719eucas1p1723f61b6e082a282baf04ed3065cc0ec~bc-9JhghD0246002460eucas1p1q; Tue, 13 Mar 2018 10:27:19 +0000 (GMT) X-AuditID: cbfec7f2-1c1ff70000011644-28-5aa7a7874cb6 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id F9.61.04178.787A7AA5; Tue, 13 Mar 2018 10:27:19 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P5I00BZ0YDG9J10@eusync3.samsung.com>; Tue, 13 Mar 2018 10:27:19 +0000 (GMT) From: Marek Szyprowski To: linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Andrzej Hajda Subject: [PATCH] media: s5p-mfc: Use real device for request_firmware() call Date: Tue, 13 Mar 2018 11:27:10 +0100 Message-id: <20180313102710.23699-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.15.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeLIzCtJLcpLzFFi42LZduzned325cujDCYtMrG4te4cq0XPhq2s FjPO72OyWHvkLrvF4TftrA6sHn1bVjF6fN4kF8AUxWWTkpqTWZZapG+XwJXx/MhK1oJ/nBV/ 9sk3MO7h6GLk5JAQMJF49GsBYxcjF4eQwApGiTvfN0I5nxklFt/7zNLFyAFWteFDAkR8GaPE q7N3mCCcBiaJ9U/XsYKMYhMwlOh628UGYosIOEksnPWXHaSIWaCZUeJ0+yOwhLCAj8TLOe1g DSwCqhJvHnwCs3kFbCWmN01lg7hJXmLx951sIM0SAidZJV4uuwyVcJG4vmItK4QtLPHq+BZ2 CFtGorPjIBOEXS/R9/0IE0RzD6PE3papUAlricPHL4I1MwvwSUzaNp0Z4jdeiY42IYgSD4nd P2YzQ9iOEsuPHGYEsYUEYiUOr/vOOIFRcgEjwypG8dTS4tz01GLDvNRyveLE3OLSvHS95Pzc TYzAaDr97/inHYxfLyUdYhTgYFTi4TVoXhYlxJpYVlyZe4hRgoNZSYTXrGd5lBBvSmJlVWpR fnxRaU5q8SFGaQ4WJXHeOI26KCGB9MSS1OzU1ILUIpgsEwenVANjq9+FtTodzX93651i2leg 8ULcw/1PxdEzcjW9xjc5ZTl4wtYcWtw0wUXbxpv3YctEj92/lnQn3zv6c/NJsy18tTFKt9Pu ljkKSG5d2xC0//eBH5lnWvwv5bMIaCvuOHLMfNGSYmllg2XfxOesPJc+j//UNN9roeornrGd KXKXPTN3oZzrQ8/DSizFGYmGWsxFxYkA/Bk4QaICAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKJMWRmVeSWpSXmKPExsVy+t/xq7rty5dHGfzfJWlxa905VoueDVtZ LWac38dksfbIXXaLw2/aWR1YPfq2rGL0+LxJLoApissmJTUnsyy1SN8ugSvj+ZGVrAX/OCv+ 7JNvYNzD0cXIwSEhYCKx4UNCFyMXh5DAEkaJ/4/fMUI4TUwSk1onATmcHGwChhJdb7vYQGwR ASeJhbP+soMUMQu0Mkps3tzOApIQFvCReDmnnRXEZhFQlXjz4BOYzStgKzG9aSpYs4SAvMTi 7zvZJjByLWBkWMUoklpanJueW2yoV5yYW1yal66XnJ+7iRHo2W3Hfm7ewXhpY/AhRgEORiUe XoPmZVFCrIllxZW5hxglOJiVRHjNepZHCfGmJFZWpRblxxeV5qQWH2KU5mBREuc9b1AZJSSQ nliSmp2aWpBaBJNl4uCUamCMWpd7qXNm2YXO35HW7DOM575dev2uiKj+W5VWHrf3S6eZtJ96 evjtEVn3U5xxwk2N08/e+13zTFDlumhZk9BpXVWZrtXvrn9dJqPZPNd0RtZT36VBLpo5nzdW qP0/4Fn8NZP/6HTmhB/ClhFylw+Jzn9zsluxuix0utq5VbM4DRNuVBtbscgosRRnJBpqMRcV JwIAqyr6augBAAA= X-CMS-MailID: 20180313102719eucas1p1723f61b6e082a282baf04ed3065cc0ec X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180313102719eucas1p1723f61b6e082a282baf04ed3065cc0ec X-RootMTR: 20180313102719eucas1p1723f61b6e082a282baf04ed3065cc0ec References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Provide proper (real) struct device to request_firmware() call. This fixes following error messages: (NULL device *): Direct firmware load for s5p-mfc-v6-v2.fw failed with error -2 (NULL device *): Direct firmware load for s5p-mfc-v6.fw failed with error -2 into a bit more meaningful ones: s5p-mfc 11000000.codec: Direct firmware load for s5p-mfc-v6-v2.fw failed with error -2 s5p-mfc 11000000.codec: Direct firmware load for s5p-mfc-v6.fw failed with error -2 Signed-off-by: Marek Szyprowski --- drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c b/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c index f95cd76af537..ef9ae969d307 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c @@ -62,7 +62,7 @@ int s5p_mfc_load_firmware(struct s5p_mfc_dev *dev) if (!dev->variant->fw_name[i]) continue; err = request_firmware((const struct firmware **)&fw_blob, - dev->variant->fw_name[i], dev->v4l2_dev.dev); + dev->variant->fw_name[i], &dev->plat_dev->dev); if (!err) { dev->fw_ver = (enum s5p_mfc_fw_ver) i; break;