From patchwork Wed May 29 16:12:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 2631101 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 0660A40232 for ; Wed, 29 May 2013 16:13:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756144Ab3E2QNE (ORCPT ); Wed, 29 May 2013 12:13:04 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:52777 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754651Ab3E2QNB (ORCPT ); Wed, 29 May 2013 12:13:01 -0400 Received: by mail-wi0-f173.google.com with SMTP id hi5so3703643wib.12 for ; Wed, 29 May 2013 09:13:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:content-type :x-gm-message-state; bh=bzF8iZwX74/cYG3rX+mT4h7IrfOwL3cdtNe32i/BMn0=; b=Ib3BrGMnf78YcnQsZ22TmnRVdicSNLN9eTKPehi81ioEpM5tHMpCKlMyRr9q1YPUJ4 VqeFBm6UgK0D2jLXvo5mlnSQJR7dr9OCedJSkdsmO9jOezEKUEgf+eLHAFSwhXTLpSDW n1z5UOJAQ1onQQSJxhsjKL632tnfIxDobKErTLK2eKM8L7WzB9uWBVBwkyEp5gm5QU6E UC+yCg7JnvHnkhljnQse7FKBB+McEzYmAJzHUacCTSXzSOJEYBF3pihhxaPOj6qszDFo zGQMy7y4BApKDBm0KINsHwm54c9lNwFlb4jaeHAhNm0lDZKUUgrS4/lIWp2p5//Gn0/M 11EA== X-Received: by 10.180.206.235 with SMTP id lr11mr15937165wic.59.1369843980538; Wed, 29 May 2013 09:13:00 -0700 (PDT) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id w8sm36833210wiz.0.2013.05.29.09.12.59 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 29 May 2013 09:12:59 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org Cc: Michal Simek , Michal Simek , Pallav Joshi , git-dev@xilinx.com, Florian Tobias Schandinat , linux-fbdev@vger.kernel.org Subject: [PATCH 1/3] video: xilinxfb: Fix OF probing on little-endian systems Date: Wed, 29 May 2013 18:12:56 +0200 Message-Id: <502367ddf6d79b7b343b3165ad54cb9e2d4713db.1369843969.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.8.2.3 X-Gm-Message-State: ALoCoQmxMiDCW37p5PHQSgBdkhWgEVe0Jw+pdb4cF1uJwrmpWUQPsvOQn8A0OEVizbt02AYQDJcn Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org From: Michal Simek DTB is always big-endian that's why is necessary to convert it. Signed-off-by: Michal Simek Signed-off-by: Michal Simek --- drivers/video/xilinxfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.8.2.3 diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c index af0b4fd..5af341e 100644 --- a/drivers/video/xilinxfb.c +++ b/drivers/video/xilinxfb.c @@ -428,7 +428,7 @@ static int xilinxfb_of_probe(struct platform_device *op) * interface and initialize the tft_access accordingly. */ p = (u32 *)of_get_property(op->dev.of_node, "xlnx,dcr-splb-slave-if", NULL); - tft_access = p ? *p : 0; + tft_access = p ? be32_to_cpup(p) : 0; /* * Fill the resource structure if its direct PLB interface