| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 3 | | - * under the terms of the GNU General Public License version 2 as published |
|---|
| 4 | | - * by the Free Software Foundation. |
|---|
| 5 | 3 | * |
|---|
| 6 | 4 | * Copyright (C) 2012 John Crispin <john@phrozen.org> |
|---|
| 7 | 5 | * Copyright (C) 2012 Lantiq GmbH |
|---|
| .. | .. |
|---|
| 124 | 122 | { |
|---|
| 125 | 123 | struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); |
|---|
| 126 | 124 | |
|---|
| 125 | + if (!clk) |
|---|
| 126 | + return; |
|---|
| 127 | 127 | clk->cl.dev_id = dev_name(dev); |
|---|
| 128 | 128 | clk->cl.con_id = con; |
|---|
| 129 | 129 | clk->cl.clk = clk; |
|---|