toonie.c (8dd06ef34b6e2f41b29fbf5fc1663780f2524285) toonie.c (75b1a8f9d62e50f05d0e4e9f3c8bcde32527ffc1)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Apple Onboard Audio driver for Toonie codec
4 *
5 * Copyright 2006 Johannes Berg <johannes@sipsolutions.net>
6 *
7 * This is a driver for the toonie codec chip. This chip is present
8 * on the Mac Mini and is nothing but a DAC.

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

121
122static int __init toonie_init(void)
123{
124 toonie = kzalloc(sizeof(struct toonie), GFP_KERNEL);
125
126 if (!toonie)
127 return -ENOMEM;
128
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Apple Onboard Audio driver for Toonie codec
4 *
5 * Copyright 2006 Johannes Berg <johannes@sipsolutions.net>
6 *
7 * This is a driver for the toonie codec chip. This chip is present
8 * on the Mac Mini and is nothing but a DAC.

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

121
122static int __init toonie_init(void)
123{
124 toonie = kzalloc(sizeof(struct toonie), GFP_KERNEL);
125
126 if (!toonie)
127 return -ENOMEM;
128
129 strlcpy(toonie->codec.name, "toonie", sizeof(toonie->codec.name));
129 strscpy(toonie->codec.name, "toonie", sizeof(toonie->codec.name));
130 toonie->codec.owner = THIS_MODULE;
131 toonie->codec.init = toonie_init_codec;
132 toonie->codec.exit = toonie_exit_codec;
133
134 if (aoa_codec_register(&toonie->codec)) {
135 kfree(toonie);
136 return -EINVAL;
137 }

--- 12 unchanged lines hidden ---
130 toonie->codec.owner = THIS_MODULE;
131 toonie->codec.init = toonie_init_codec;
132 toonie->codec.exit = toonie_exit_codec;
133
134 if (aoa_codec_register(&toonie->codec)) {
135 kfree(toonie);
136 return -EINVAL;
137 }

--- 12 unchanged lines hidden ---