au1550nd.c (ead5d1f4d877e92c051e1a1ade623d0d30e71619) au1550nd.c (bace41f80f65dc4ba13c892bac783e7e81847379)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2004 Embedded Edge, LLC
4 */
5
6#include <linux/slab.h>
7#include <linux/module.h>
8#include <linux/interrupt.h>

--- 280 unchanged lines hidden (view full) ---

289 ret = -ENODEV;
290 goto out3;
291 }
292 ctx->cs = cs;
293
294 nand_controller_init(&ctx->controller);
295 ctx->controller.ops = &au1550nd_ops;
296 this->controller = &ctx->controller;
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2004 Embedded Edge, LLC
4 */
5
6#include <linux/slab.h>
7#include <linux/module.h>
8#include <linux/interrupt.h>

--- 280 unchanged lines hidden (view full) ---

289 ret = -ENODEV;
290 goto out3;
291 }
292 ctx->cs = cs;
293
294 nand_controller_init(&ctx->controller);
295 ctx->controller.ops = &au1550nd_ops;
296 this->controller = &ctx->controller;
297 this->ecc.mode = NAND_ECC_SOFT;
298 this->ecc.algo = NAND_ECC_HAMMING;
297 this->ecc.engine_type = NAND_ECC_ENGINE_TYPE_SOFT;
298 this->ecc.algo = NAND_ECC_ALGO_HAMMING;
299
300 if (pd->devwidth)
301 this->options |= NAND_BUSWIDTH_16;
302
303 ret = nand_scan(this, 1);
304 if (ret) {
305 dev_err(&pdev->dev, "NAND scan failed with %d\n", ret);
306 goto out3;

--- 46 unchanged lines hidden ---
299
300 if (pd->devwidth)
301 this->options |= NAND_BUSWIDTH_16;
302
303 ret = nand_scan(this, 1);
304 if (ret) {
305 dev_err(&pdev->dev, "NAND scan failed with %d\n", ret);
306 goto out3;

--- 46 unchanged lines hidden ---